summaryrefslogtreecommitdiff
path: root/script/provider/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-23 21:47:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-23 21:47:21 +0800
commit5dae895f67bf0f75278d25b0d412e00705386fce (patch)
treef4d08c51d96a706f2ad00ac5caec27a9006e5b0e /script/provider/completion.lua
parent5e3ec5527377acf9e6ab60fe222c40ddf2ef591c (diff)
downloadlua-language-server-5dae895f67bf0f75278d25b0d412e00705386fce.zip
fix some dialog boxes block the initialization
Diffstat (limited to 'script/provider/completion.lua')
-rw-r--r--script/provider/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/completion.lua b/script/provider/completion.lua
index 1adcc47a..bca5b7af 100644
--- a/script/provider/completion.lua
+++ b/script/provider/completion.lua
@@ -24,7 +24,7 @@ local function enable()
nonil.disable()
isEnable = true
log.debug('Enable completion.')
- proto.awaitRequest('client/registerCapability', {
+ proto.request('client/registerCapability', {
registrations = {
{
id = 'completion',
@@ -49,7 +49,7 @@ local function disable()
nonil.disable()
isEnable = false
log.debug('Disable completion.')
- proto.awaitRequest('client/unregisterCapability', {
+ proto.request('client/unregisterCapability', {
unregisterations = {
{
id = 'completion',