summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-27 18:00:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-27 18:00:00 +0800
commit01f2b4679667384223bc3e2c3275fe7164b622be (patch)
treee0c78eebf52ab7d2a7a32f60f6fbe6db99d77dc1 /script/provider
parent98167f4e9eb2794dbaceb50dc79ac75867413ea1 (diff)
downloadlua-language-server-01f2b4679667384223bc3e2c3275fe7164b622be.zip
fix visible
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 2781f2c7..0e4f7ddd 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -729,7 +729,11 @@ proto.on('window/workDoneProgress/cancel', function (params)
end)
proto.on('$/didChangeVisibleRanges', function (params)
- files.setVisibles(params.uri, params.ranges)
+ local uri = params.uri
+ await.close('visible:' .. uri)
+ await.setID('visible:' .. uri)
+ await.delay()
+ files.setVisibles(uri, params.ranges)
end)
proto.on('$/status/click', function ()