summaryrefslogtreecommitdiff
path: root/script/provider/semantic-tokens.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:14:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:14:13 +0800
commit0d3dce5321332022552fca038e2e2d35985235c6 (patch)
tree841813a24eee3c44f7a162a53ebeb5c17a4d012a /script/provider/semantic-tokens.lua
parentb578d3d0c16f992e29657c3cad8ef9c3dd7d6a2c (diff)
downloadlua-language-server-0d3dce5321332022552fca038e2e2d35985235c6.zip
cleanup
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