mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(diagnostic): don't convert diagnostic table twice
The recursive implementation of vim.lsp.diagnostic.get() applied `diagnostic_vim_to_lsp` twice, and the second time gave wrong results because of the unexpected format. Fixes https://github.com/neovim/neovim/issues/15689
This commit is contained in:
		| @@ -265,7 +265,7 @@ function M.get(bufnr, client_id, predicate) | |||||||
|         table.insert(all_diagnostics, diagnostic) |         table.insert(all_diagnostics, diagnostic) | ||||||
|       end |       end | ||||||
|     end) |     end) | ||||||
|     return diagnostic_vim_to_lsp(all_diagnostics) |     return all_diagnostics | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   local namespace = M.get_namespace(client_id) |   local namespace = M.get_namespace(client_id) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Clason
					Christian Clason