diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-11 20:53:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-11 20:53:12 +0800 |
commit | 9cb0fa1098e466efac78401ff76c422ac27bfab8 (patch) | |
tree | a6b31712d7cc32a59f1c7242cf44d62a0d401314 /script/provider/semantic-tokens.lua | |
parent | d2f5980d688a2c075113bfe89c5effecb195b530 (diff) | |
download | lua-language-server-9cb0fa1098e466efac78401ff76c422ac27bfab8.zip |
change to `Lua.semantic.enable`
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r-- | script/provider/semantic-tokens.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua index 89c396f0..2fa75064 100644 --- a/script/provider/semantic-tokens.lua +++ b/script/provider/semantic-tokens.lua @@ -49,18 +49,16 @@ local function refresh() end log.debug('Refresh semantic tokens.') proto.request('workspace/semanticTokens/refresh', json.null) - check() + --check() end config.watch(function (uri, key, value, oldValue) if key == '' then refresh() end - if key == 'Lua.color.mode' then - refresh() - end if key:find '^Lua.runtime' or key:find '^Lua.workspace' + or key:find '^Lua.semantic' or key:find '^files' then refresh() end |