mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
Clear language server id for all worktrees when stopping a language server
This commit is contained in:
parent
6b50dda28a
commit
832cc3dd19
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue