fix: clear file list view before showing new diagnostics
This commit is contained in:
parent
521c7befef
commit
b656ebc49e
1 changed files with 1 additions and 0 deletions
|
@ -487,6 +487,7 @@ const cmds = struct {
|
||||||
|
|
||||||
pub fn show_diagnostics(self: *Self, _: Ctx) Result {
|
pub fn show_diagnostics(self: *Self, _: Ctx) Result {
|
||||||
const editor = self.editor orelse return;
|
const editor = self.editor orelse return;
|
||||||
|
self.clear_find_in_files_results(.diagnostics);
|
||||||
for (editor.diagnostics.items) |diagnostic| {
|
for (editor.diagnostics.items) |diagnostic| {
|
||||||
try self.add_find_in_files_result(
|
try self.add_find_in_files_result(
|
||||||
.diagnostics,
|
.diagnostics,
|
||||||
|
|
Loading…
Add table
Reference in a new issue