diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 21:32:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 21:32:46 +0800 |
commit | 735210cb6ba3e4e0689efc3155319b0f195eac8d (patch) | |
tree | 31eddc8c6a31863b91cee7351e3799f65646f6ce /script/provider/provider.lua | |
parent | 680e6c9848a6e5f43ccce11561ec98839822bdea (diff) | |
download | lua-language-server-735210cb6ba3e4e0689efc3155319b0f195eac8d.zip |
cleanup
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index af78cd26..ad23ccda 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -239,7 +239,7 @@ m.register 'textDocument/didOpen' { local doc = params.textDocument local scheme = furi.split(doc.uri) local supports = config.get(doc.uri, 'Lua.workspace.supportScheme') - if not supports[scheme] then + if not util.arrayHas(supports, scheme) then return end local uri = files.getRealUri(doc.uri) @@ -269,7 +269,7 @@ m.register 'textDocument/didChange' { local doc = params.textDocument local scheme = furi.split(doc.uri) local supports = config.get(doc.uri, 'Lua.workspace.supportScheme') - if not supports[scheme] then + if not util.arrayHas(supports, scheme) then return end local changes = params.contentChanges |