File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# changelog
2
2
3
+ ## 2.6.6
4
+ * ` FIX ` [ #958 ] ( https://github.com./sumneko/lua-language-server/issues/958 )
5
+
3
6
## 2.6.5
4
7
` 2022-2-17 `
5
8
* ` FIX ` telemetry is not disabled by default (since 2.6.0)
Original file line number Diff line number Diff line change @@ -425,10 +425,11 @@ m.register 'textDocument/documentHighlight' {
425
425
capability = {
426
426
documentHighlightProvider = true ,
427
427
},
428
- abortByFileUpdate = true ,
428
+ --- @async
429
429
function (params )
430
430
local core = require ' core.highlight'
431
431
local uri = files .getRealUri (params .textDocument .uri )
432
+ workspace .awaitReady (uri )
432
433
if not files .exists (uri ) then
433
434
return nil
434
435
end
@@ -927,11 +928,11 @@ m.register 'textDocument/foldingRange' {
927
928
capability = {
928
929
foldingRangeProvider = true ,
929
930
},
930
- abortByFileUpdate = true ,
931
931
--- @async
932
932
function (params )
933
933
local core = require ' core.folding'
934
934
local uri = files .getRealUri (params .textDocument .uri )
935
+ workspace .awaitReady (uri )
935
936
if not files .exists (uri ) then
936
937
return nil
937
938
end
You can’t perform that action at this time.
0 commit comments