parent
d4d049d7b9
commit
44941b5dfe
11 changed files with 16 additions and 15 deletions
|
@ -10883,7 +10883,7 @@ impl LspStore {
|
|||
// Find all worktrees that have this server in their language server tree
|
||||
for (worktree_id, servers) in &local.lsp_tree.instances {
|
||||
if *worktree_id != key.worktree_id {
|
||||
for (_, server_map) in &servers.roots {
|
||||
for server_map in servers.roots.values() {
|
||||
if server_map.contains_key(&key.name) {
|
||||
worktrees_using_server.push(*worktree_id);
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ impl ManifestTree {
|
|||
_subscriptions: [
|
||||
cx.subscribe(&worktree_store, Self::on_worktree_store_event),
|
||||
cx.observe_global::<SettingsStore>(|this, cx| {
|
||||
for (_, roots) in &mut this.root_points {
|
||||
for roots in this.root_points.values_mut() {
|
||||
roots.update(cx, |worktree_roots, _| {
|
||||
worktree_roots.roots = RootPathTrie::new();
|
||||
})
|
||||
|
|
|
@ -312,8 +312,8 @@ impl LanguageServerTree {
|
|||
|
||||
/// Remove nodes with a given ID from the tree.
|
||||
pub(crate) fn remove_nodes(&mut self, ids: &BTreeSet<LanguageServerId>) {
|
||||
for (_, servers) in &mut self.instances {
|
||||
for (_, nodes) in &mut servers.roots {
|
||||
for servers in self.instances.values_mut() {
|
||||
for nodes in &mut servers.roots.values_mut() {
|
||||
nodes.retain(|_, (node, _)| node.id.get().is_none_or(|id| !ids.contains(id)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue