summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ()