mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(diagnostic): use correct field name for tags (#22835)
LSP tags are added to the diagnostic as "tags" but referred to as "_tags" in the diagnostic underline handler
This commit is contained in:
@@ -119,7 +119,7 @@ local function diagnostic_lsp_to_vim(diagnostics, bufnr, client_id)
|
|||||||
message = diagnostic.message,
|
message = diagnostic.message,
|
||||||
source = diagnostic.source,
|
source = diagnostic.source,
|
||||||
code = diagnostic.code,
|
code = diagnostic.code,
|
||||||
tags = tags_lsp_to_vim(diagnostic, client_id),
|
_tags = tags_lsp_to_vim(diagnostic, client_id),
|
||||||
user_data = {
|
user_data = {
|
||||||
lsp = {
|
lsp = {
|
||||||
-- usage of user_data.lsp.code is deprecated in favor of the top-level code field
|
-- usage of user_data.lsp.code is deprecated in favor of the top-level code field
|
||||||
|
Reference in New Issue
Block a user