@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user