diff options
| author | Alexandre Teoi <ateoi@users.noreply.github.com> | 2025-07-19 12:36:13 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-19 08:36:13 -0700 |
| commit | de932721f90d8aeb5a7a7f9d45249290da2a751c (patch) | |
| tree | 2d383ac963d33271d30c67110a8a58ffed9e384d | |
| parent | fix(biome): error when using non-local biome binary #3962 (diff) | |
| download | nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.tar nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.tar.gz nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.tar.bz2 nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.tar.lz nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.tar.xz nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.tar.zst nvim-lspconfig-de932721f90d8aeb5a7a7f9d45249290da2a751c.zip | |
fix(roslyn_ls): replace deprecated function call #3963
vim.lsp.util._refresh() was removed by
https://github.com/neovim/neovim/pull/33903
| -rw-r--r-- | lsp/roslyn_ls.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lsp/roslyn_ls.lua b/lsp/roslyn_ls.lua index 346f58f3..58da15ab 100644 --- a/lsp/roslyn_ls.lua +++ b/lsp/roslyn_ls.lua @@ -50,8 +50,11 @@ local function roslyn_handlers() vim.notify('Roslyn project initialization complete', vim.log.levels.INFO, { title = 'roslyn_ls' }) local buffers = vim.lsp.get_buffers_by_client_id(ctx.client_id) + local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) for _, buf in ipairs(buffers) do - vim.lsp.util._refresh('textDocument/diagnostic', { bufnr = buf }) + client:request(vim.lsp.protocol.Methods.textDocument_diagnostic, { + textDocument = vim.lsp.util.make_text_document_params(buf), + }, nil, buf) end end, ['workspace/_roslyn_projectHasUnresolvedDependencies'] = function() |
