summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-29 14:50:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-29 14:50:06 +0800
commit4556d55e6e944f122db9cbb8c4d126d43dc8710d (patch)
treea04e44c0d22e28ac91d7c742c4d33bc4db27e115 /script/provider/provider.lua
parent84f00693304a934ffbd86aa48d35245d6277ea68 (diff)
downloadlua-language-server-4556d55e6e944f122db9cbb8c4d126d43dc8710d.zip
help makes semantic tokens effect
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 40990906..9074b034 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -34,7 +34,11 @@ local function updateConfig()
{
scopeUri = workspace.uri,
section = 'files.exclude',
- }
+ },
+ {
+ scopeUri = workspace.uri,
+ section = 'editor.semanticHighlighting.enabled',
+ },
},
})
if not configs or not configs[1] then
@@ -46,6 +50,7 @@ local function updateConfig()
local other = {
associations = configs[2],
exclude = configs[3],
+ semantic = configs[4],
}
local oldConfig = util.deepCopy(config.config)