Clear language server and worktree statuses when unsharing on server
This commit is contained in:
parent
339069b1d3
commit
1ce8682b94
1 changed files with 7 additions and 0 deletions
|
@ -550,6 +550,13 @@ impl Store {
|
||||||
|
|
||||||
let connection_ids = project.connection_ids();
|
let connection_ids = project.connection_ids();
|
||||||
let unshare = connection_ids.len() <= 1 && project.join_requests.is_empty();
|
let unshare = connection_ids.len() <= 1 && project.join_requests.is_empty();
|
||||||
|
if unshare {
|
||||||
|
project.language_servers.clear();
|
||||||
|
for worktree in project.worktrees.values_mut() {
|
||||||
|
worktree.diagnostic_summaries.clear();
|
||||||
|
worktree.entries.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(LeftProject {
|
Ok(LeftProject {
|
||||||
host_connection_id: project.host_connection_id,
|
host_connection_id: project.host_connection_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue