summaryrefslogtreecommitdiff
path: root/script/provider/semantic-tokens.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r--script/provider/semantic-tokens.lua14
1 files changed, 5 insertions, 9 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua
index fa636381..f9f774b1 100644
--- a/script/provider/semantic-tokens.lua
+++ b/script/provider/semantic-tokens.lua
@@ -64,15 +64,11 @@ local function enable()
return
end
if item.title == lang.script.WINDOW_APPLY_SETTING then
- proto.notify('$/command', {
- command = 'lua.config',
- data = {
- key = 'editor.semanticHighlighting.enabled',
- action = 'set',
- value = true,
- global = true,
- }
- })
+ client.setConfig('editor.semanticHighlighting.enabled'
+ , 'set'
+ , true
+ , true
+ )
end
if item.title == lang.script.WINDOW_DONT_SHOW_AGAIN then
dontShowAgain = true