Clear language server id for all worktrees when stopping a language server

This commit is contained in:
Keith Simmons 2022-06-30 17:50:30 -07:00
parent 6b50dda28a
commit 832cc3dd19

View file

@ -2249,6 +2249,10 @@ impl Project {
) -> Task<()> {
let key = (worktree_id, adapter_name);
if let Some(server_id) = self.language_server_ids.remove(&key) {
// Remove other entries for this language server
self.language_server_ids
.retain(|_, other_id| other_id != &server_id);
self.language_server_statuses.remove(&server_id);
cx.notify();