fix: defer diagnostic display until leaving Insert mode
This commit is contained in:
+4
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user