summaryrefslogtreecommitdiff
path: root/script/provider/semantic-tokens.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-27 15:54:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-27 15:54:37 +0800
commit2f4f3e185b82ac16364e3a6150b8e1a7c5b1cdf9 (patch)
tree46c73f4febc2303ae28eb7117e6c5c370937f542 /script/provider/semantic-tokens.lua
parent8dda772869b35778be3178c7e12d3a268e8d08af (diff)
downloadlua-language-server-2f4f3e185b82ac16364e3a6150b8e1a7c5b1cdf9.zip
some fix
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r--script/provider/semantic-tokens.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua
index 448bbe2a..5340a7e8 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