summaryrefslogtreecommitdiff
path: root/script-beta/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-19 16:50:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-19 16:50:08 +0800
commit719c434de917b7ee77173a2a265ed31581f61bb9 (patch)
treed81fa38169cd3544302507e1894d65992e4d996f /script-beta/provider
parentb841b2668dd7d36cbf42c3f261e69e2a70358c6b (diff)
downloadlua-language-server-719c434de917b7ee77173a2a265ed31581f61bb9.zip
优化性能
Diffstat (limited to 'script-beta/provider')
-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 c56914e3..5dbb9e48 100644
--- a/script-beta/provider/provider.lua
+++ b/script-beta/provider/provider.lua
@@ -193,6 +193,8 @@ proto.on('textDocument/didChange', function (params)
end)
proto.on('textDocument/hover', function (params)
+ await.close 'hover'
+ await.setID 'hover'
local core = require 'core.hover'
local doc = params.textDocument
local uri = doc.uri