We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1f796 commit a8b24b2Copy full SHA for a8b24b2
lua/lspsaga/codeaction/lightbulb.lua
@@ -75,12 +75,13 @@ local function tags_vim_to_lsp(diagnostic)
75
end
76
return tags
77
78
+
79
local function diagnostic_vim_to_lsp(diagnostics)
80
---@param diagnostic vim.Diagnostic
81
---@return lsp.Diagnostic
82
return vim.tbl_map(function(diagnostic)
83
local user_data = diagnostic.user_data or {}
- if user_data.lsp then
84
+ if user_data.lsp and not vim.tbl_isempty(user_data.lsp) then
85
return user_data.lsp
86
87
return {
0 commit comments