summaryrefslogtreecommitdiff
path: root/script-beta/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-21 12:09:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-21 12:09:59 +0800
commit2a89c31ba0a7a4b7b3547d26bb977d74632b222c (patch)
tree713501cd83dfbf3105972675ced61acabeec3511 /script-beta/provider/provider.lua
parent27a6a7041f01d5f53693901ed9efd898bac31dbf (diff)
downloadlua-language-server-2a89c31ba0a7a4b7b3547d26bb977d74632b222c.zip
准备检查一下性能问题
Diffstat (limited to 'script-beta/provider/provider.lua')
-rw-r--r--script-beta/provider/provider.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script-beta/provider/provider.lua b/script-beta/provider/provider.lua
index 094ac027..bf584935 100644
--- a/script-beta/provider/provider.lua
+++ b/script-beta/provider/provider.lua
@@ -452,6 +452,8 @@ proto.on('textDocument/signatureHelp', function (params)
if not files.exists(uri) then
return nil
end
+ await.close('signatureHelp')
+ await.setID('signatureHelp')
local lines = files.getLines(uri)
local text = files.getText(uri)
local offset = define.offset(lines, text, params.position)