summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-28 12:02:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-28 12:02:38 +0800
commit04264ad28a5cf727b96aa599150e8fe016df07c0 (patch)
tree171642d7d5f3980114bbd0c5f9eddee1d0dc6c84 /script-beta
parentf26bf237e49f90799fc3ff6ef0c0edc19c6ae9cb (diff)
downloadlua-language-server-04264ad28a5cf727b96aa599150e8fe016df07c0.zip
#234 语义着色的协议叒改了
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/provider/semantic-tokens.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/provider/semantic-tokens.lua b/script-beta/provider/semantic-tokens.lua
index 96db324e..17985bcd 100644
--- a/script-beta/provider/semantic-tokens.lua
+++ b/script-beta/provider/semantic-tokens.lua
@@ -28,14 +28,14 @@ local function enable()
registrations = {
{
id = 'semantic-tokens',
- method = 'textDocument/semanticTokens/full',
+ method = 'textDocument/semanticTokens',
registerOptions = {
legend = {
tokenTypes = toArray(define.TokenTypes),
tokenModifiers = toArray(define.TokenModifiers),
},
range = true,
- full = false,
+ full = true,
},
},
}
@@ -52,7 +52,7 @@ local function disable()
unregisterations = {
{
id = 'semantic-tokens',
- method = 'textDocument/semanticTokens/full',
+ method = 'textDocument/semanticTokens',
},
}
})