summaryrefslogtreecommitdiff
path: root/script/provider/semantic-tokens.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-30 11:59:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-30 11:59:43 +0800
commit69ddc8410def956d75d6429befbc2d1872fb6af7 (patch)
treed61f9a00c2455293d42027e26ab96e8fdd30b2c7 /script/provider/semantic-tokens.lua
parentfc8ee4d41abfe6d8385ceb221d358488b0936513 (diff)
downloadlua-language-server-69ddc8410def956d75d6429befbc2d1872fb6af7.zip
refresh semantic tokens
Diffstat (limited to 'script/provider/semantic-tokens.lua')
-rw-r--r--script/provider/semantic-tokens.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/provider/semantic-tokens.lua b/script/provider/semantic-tokens.lua
index 65235509..e4b2fc6f 100644
--- a/script/provider/semantic-tokens.lua
+++ b/script/provider/semantic-tokens.lua
@@ -1,6 +1,7 @@
local proto = require 'proto'
local define = require 'proto.define'
local client = require 'provider.client'
+local json = require "json"
local isEnable = false
@@ -58,7 +59,13 @@ local function disable()
})
end
+local function refresh()
+ log.debug('Refresh semantic tokens.')
+ proto.notify('workspace/semanticTokens/refresh', json.null)
+end
+
return {
- enable = enable,
+ enable = enable,
disable = disable,
+ refresh = refresh,
}