neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4ee2e365a583e26468e7ea820f5416a980515504
parent f2988e05db451099645e32a427d5aaf4cae53bb4
Author: Zie Mcdowell <ziemcd@gmail.com>
Date:   Fri, 27 Jun 2025 20:17:41 +0100

fix(lsp): fix workspace diagnostic request to follow spec (#34674)

* fix(lsp): fix workspace diagnostic request to follow spec

* refactor(lsp): add type annotation
Diffstat:
Mruntime/lua/vim/lsp/diagnostic.lua | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua @@ -443,16 +443,16 @@ end --- Returns the result IDs from the reports provided by the given client. --- @return lsp.PreviousResultId[] local function previous_result_ids(client_id) - local results = {} + local results = {} ---@type lsp.PreviousResultId[] for bufnr, state in pairs(bufstates) do if state.pull_kind ~= 'disabled' then for buf_client_id, result_id in pairs(state.client_result_id) do if buf_client_id == client_id then - table.insert(results, { - textDocument = util.make_text_document_params(bufnr), - previousResultId = result_id, - }) + results[#results + 1] = { + uri = vim.uri_from_bufnr(bufnr), + value = result_id, + } break end end