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 | |
parent | 680e6c9848a6e5f43ccce11561ec98839822bdea (diff) | |
download | lua-language-server-735210cb6ba3e4e0689efc3155319b0f195eac8d.zip |
cleanup
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/diagnostic.lua | 2 | ||||
-rw-r--r-- | script/provider/provider.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index d6d6c4a3..5957e3eb 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -236,7 +236,7 @@ local function isValid(uri) end local scheme = furi.split(uri) local disableScheme = config.get(uri, 'Lua.diagnostics.disableScheme') - if disableScheme[scheme] then + if util.arrayHas(disableScheme, scheme) then return false end return true 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 |