summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-18 15:16:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-18 15:16:49 +0800
commit716091ac3646d57af28a106d4a3b15cf3b849544 (patch)
tree36db3a63629e880980cd4b2dff7c2f6a7bc53066 /script/provider
parent2f984c1a2baf162f72240ca7b7f3f530459a71f4 (diff)
downloadlua-language-server-716091ac3646d57af28a106d4a3b15cf3b849544.zip
pass tests
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/completion.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/provider/completion.lua b/script/provider/completion.lua
index 9bcccc66..3c0c82d7 100644
--- a/script/provider/completion.lua
+++ b/script/provider/completion.lua
@@ -30,6 +30,7 @@ local function enable(uri)
end
nonil.enable()
if not client.info.capabilities.textDocument.completion.dynamicRegistration then
+ nonil.disable()
return
end
nonil.disable()
@@ -55,6 +56,7 @@ local function disable(uri)
end
nonil.enable()
if not client.info.capabilities.textDocument.completion.dynamicRegistration then
+ nonil.disable()
return
end
nonil.disable()