diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 16:02:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 16:02:40 +0800 |
commit | 4c51da51064bb825563827d0610a1e3db75299aa (patch) | |
tree | d3f1d5263f8435c6e223ef04608177ac9b448542 /script/provider/semantic-tokens.lua | |
parent | 55e30e88ba33a28acc53265b249860b0bbc06fba (diff) | |
parent | 2f4f3e185b82ac16364e3a6150b8e1a7c5b1cdf9 (diff) | |
download | lua-language-server-4c51da51064bb825563827d0610a1e3db75299aa.zip |
Merge branch 'master' into improve-semantic-highlighting
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r-- | script/provider/semantic-tokens.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua index 023c9e7e..7ca97a3e 100644 --- a/script/provider/semantic-tokens.lua +++ b/script/provider/semantic-tokens.lua @@ -102,6 +102,9 @@ local function disable() end local function refresh() + if not isEnable then + return + end log.debug('Refresh semantic tokens.') proto.request('workspace/semanticTokens/refresh', json.null) end |