diff options
author | Akin <22454918+akinsho@users.noreply.github.com> | 2023-03-31 11:23:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 11:23:19 +0100 |
commit | ed10e4ef60c63d924b9969abdf77adaad506b676 (patch) | |
tree | 72ef09b658e089c106df12587035d81c98731fe7 /runtime/lua/vim/lsp/diagnostic.lua | |
parent | 4cff3aceeac2027d82080649ff1c8be9ffa87b90 (diff) | |
download | rneovim-ed10e4ef60c63d924b9969abdf77adaad506b676.tar.gz rneovim-ed10e4ef60c63d924b9969abdf77adaad506b676.tar.bz2 rneovim-ed10e4ef60c63d924b9969abdf77adaad506b676.zip |
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
Diffstat (limited to 'runtime/lua/vim/lsp/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/lsp/diagnostic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua index dcc8f6549c..3efa5c51ff 100644 --- a/runtime/lua/vim/lsp/diagnostic.lua +++ b/runtime/lua/vim/lsp/diagnostic.lua @@ -119,7 +119,7 @@ local function diagnostic_lsp_to_vim(diagnostics, bufnr, client_id) message = diagnostic.message, source = diagnostic.source, code = diagnostic.code, - tags = tags_lsp_to_vim(diagnostic, client_id), + _tags = tags_lsp_to_vim(diagnostic, client_id), user_data = { lsp = { -- usage of user_data.lsp.code is deprecated in favor of the top-level code field |