fix: defer diagnostic display until leaving Insert mode

This commit is contained in:
2026-10-10 22:34:38 +02:00
parent 3f05287d79
commit f6da7922a1
5 changed files with 67 additions and 7 deletions
+4 -1
View File
@@ -1335,7 +1335,10 @@ impl Editor {
self.active
.diagnostics
.values()
.filter(|annotations| annotations.revision == self.active.text_revision)
.filter(|annotations| {
self.active.mode != Mode::Insert
&& annotations.revision == self.active.text_revision
})
.flat_map(|annotations| &annotations.items)
}