Skip to content

Commit

Permalink
fix #958
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Feb 21, 2022
1 parent 63cc7ff commit ea83d3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# changelog

## 2.6.6
* `FIX` [#958](https://github.com/sumneko/lua-language-server/issues/958)

## 2.6.5
`2022-2-17`
* `FIX` telemetry is not disabled by default (since 2.6.0)
Expand Down
5 changes: 3 additions & 2 deletions script/provider/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,11 @@ m.register 'textDocument/documentHighlight' {
capability = {
documentHighlightProvider = true,
},
abortByFileUpdate = true,
---@async
function (params)
local core = require 'core.highlight'
local uri = files.getRealUri(params.textDocument.uri)
workspace.awaitReady(uri)
if not files.exists(uri) then
return nil
end
Expand Down Expand Up @@ -927,11 +928,11 @@ m.register 'textDocument/foldingRange' {
capability = {
foldingRangeProvider = true,
},
abortByFileUpdate = true,
---@async
function (params)
local core = require 'core.folding'
local uri = files.getRealUri(params.textDocument.uri)
workspace.awaitReady(uri)
if not files.exists(uri) then
return nil
end
Expand Down

0 comments on commit ea83d3d

Please sign in to comment.