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 a8b24b2 commit 2303d67Copy full SHA for 2303d67
lua/lspsaga/codeaction/lightbulb.lua
@@ -81,7 +81,7 @@ local function diagnostic_vim_to_lsp(diagnostics)
81
---@return lsp.Diagnostic
82
return vim.tbl_map(function(diagnostic)
83
local user_data = diagnostic.user_data or {}
84
- if user_data.lsp and not vim.tbl_isempty(user_data.lsp) then
+ if user_data.lsp and not vim.tbl_isempty(user_data.lsp) and user_data.lsp.range then
85
return user_data.lsp
86
end
87
return {
0 commit comments