SSH remoting: better error message for projects (#19320)

Before this, if no project paths were opened you were in a wierd UI
state where
most things didn't work because the project was ssh, but no
files/folders were open.

Release Notes:

- Fixed error handling when no project paths could be opened
This commit is contained in:
Conrad Irwin 2024-10-16 17:16:56 -06:00 committed by GitHub
parent f6fad3b09e
commit 0c04fb9862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 13 deletions

View file

@ -5568,6 +5568,12 @@ pub fn open_ssh_project(
};
}
if project_paths_to_open.is_empty() {
return Err(project_path_errors
.pop()
.unwrap_or_else(|| anyhow!("no paths given")));
}
cx.update_window(window.into(), |_, cx| {
cx.replace_root_view(|cx| {
let mut workspace =