mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
fix(lsp): revert buf_versions deprecation/replacement (#29217)
* Revert "fix(lsp): account for changedtick version gap on modified reset (#29170)" This reverts commit2e6d295f79
. * Revert "refactor(lsp): replace util.buf_versions with changedtick (#28943)" This reverts commit5c33815448
.
This commit is contained in:

committed by
GitHub

parent
6c7677e5d2
commit
6e45cd7f00
@@ -43,7 +43,7 @@ function M.on_inlayhint(err, result, ctx, _)
|
||||
return
|
||||
end
|
||||
local bufnr = assert(ctx.bufnr)
|
||||
if vim.b[bufnr].changedtick ~= ctx.version then
|
||||
if util.buf_versions[bufnr] ~= ctx.version then
|
||||
return
|
||||
end
|
||||
local client_id = ctx.client_id
|
||||
@@ -324,7 +324,7 @@ api.nvim_set_decoration_provider(namespace, {
|
||||
return
|
||||
end
|
||||
|
||||
if bufstate.version ~= vim.b[bufnr].changedtick then
|
||||
if bufstate.version ~= util.buf_versions[bufnr] then
|
||||
return
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user