Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/workspace/src/multi_workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ impl MultiWorkspace {
pub fn restore_project_group_keys(&mut self, keys: Vec<ProjectGroupKey>) {
let mut restored: Vec<ProjectGroupKey> = Vec::with_capacity(keys.len());
for key in keys {
if key.path_list().paths().is_empty() {
continue;
}
if !restored.contains(&key) {
restored.push(key);
}
Expand Down
3 changes: 3 additions & 0 deletions crates/workspace/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8778,6 +8778,9 @@ pub async fn restore_multiworkspace(
// stale keys from previous sessions get normalized and deduped.
let mut resolved_keys: Vec<ProjectGroupKey> = Vec::new();
for key in project_group_keys.into_iter().map(ProjectGroupKey::from) {
if key.path_list().paths().is_empty() {
continue;
}
let mut resolved_paths = Vec::new();
for path in key.path_list().paths() {
if let Some(common_dir) =
Expand Down
Loading