summaryrefslogtreecommitdiff
path: root/script/capability/semantic.lua
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/capability/semantic.lua
parentf26bf237e49f90799fc3ff6ef0c0edc19c6ae9cb (diff)
downloadlua-language-server-04264ad28a5cf727b96aa599150e8fe016df07c0.zip
#234 语义着色的协议叒改了
Diffstat (limited to 'script/capability/semantic.lua')
-rw-r--r--script/capability/semantic.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/capability/semantic.lua b/script/capability/semantic.lua
index 9fb41e56..2be22be3 100644
--- a/script/capability/semantic.lua
+++ b/script/capability/semantic.lua
@@ -28,14 +28,14 @@ local function enable(lsp)
registrations = {
{
id = 'semantic',
- method = 'textDocument/semanticTokens/full',
+ method = 'textDocument/semanticTokens',
registerOptions = {
legend = {
tokenTypes = toArray(TokenTypes),
tokenModifiers = toArray(TokenModifiers),
},
- rangeProvider = false,
- documentProvider = false,
+ range = false,
+ full = true,
},
},
}
@@ -52,7 +52,7 @@ local function disable()
unregisterations = {
{
id = 'semantic',
- method = 'textDocument/semanticTokens/full',
+ method = 'textDocument/semanticTokens',
},
}
})