diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 21:47:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 21:47:21 +0800 |
commit | 5dae895f67bf0f75278d25b0d412e00705386fce (patch) | |
tree | f4d08c51d96a706f2ad00ac5caec27a9006e5b0e /script/provider/completion.lua | |
parent | 5e3ec5527377acf9e6ab60fe222c40ddf2ef591c (diff) | |
download | lua-language-server-5dae895f67bf0f75278d25b0d412e00705386fce.zip |
fix some dialog boxes block the initialization
Diffstat (limited to 'script/provider/completion.lua')
-rw-r--r-- | script/provider/completion.lua | 4 |
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', |