Skip to content

Commit

Permalink
Clear pull diagnostics on file closed (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann authored Apr 13, 2023
1 parent 6225b00 commit fde4afa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/session_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def remove_session_view(self, sv: SessionViewProtocol) -> None:

def _on_before_destroy(self) -> None:
self.remove_all_inlay_hints()
if self.has_capability("diagnosticProvider"):
self.session.m_textDocument_publishDiagnostics({'uri': self.last_known_uri, 'diagnostics': []})
wm = self.session.manager()
if wm:
wm.on_diagnostics_updated()
Expand Down

0 comments on commit fde4afa

Please sign in to comment.