Skip to content

Commit 4b0f0e2

Browse files
authored
fix bug that prevents showing diagnostics when severity_sort = false (#1532)
1 parent 6063935 commit 4b0f0e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/lspsaga/diagnostic/show.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ local function generate_list(entrys, callback)
7676
callback(list)
7777
end
7878
end, 0)
79-
return nil
8079
else
81-
return create_linked_list(entrys)
80+
local list = create_linked_list(entrys)
81+
if callback then
82+
callback(list)
83+
end
8284
end
8385
end
8486

0 commit comments

Comments
 (0)