Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--helix-term/src/commands/typed.rs2
-rw-r--r--helix-view/src/editor.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
index b6182f8a..652106bd 100644
--- a/helix-term/src/commands/typed.rs
+++ b/helix-term/src/commands/typed.rs
@@ -1495,6 +1495,8 @@ fn lsp_stop(
for doc in cx.editor.documents_mut() {
if let Some(client) = doc.remove_language_server_by_name(ls_name) {
doc.clear_diagnostics(Some(client.id()));
+ doc.reset_all_inlay_hints();
+ doc.inlay_hints_oudated = true;
}
}
}
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 5540c518..ef491853 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1356,6 +1356,7 @@ impl Editor {
let doc = doc_mut!(self, &doc_id);
let diagnostics = Editor::doc_diagnostics(&self.language_servers, &self.diagnostics, doc);
doc.replace_diagnostics(diagnostics, &[], None);
+ doc.reset_all_inlay_hints();
}
/// Launch a language server for a given document