Disallow adding folders to projects and opening the terminal in remote projects (#11261)
Release Notes: - Fixed broken UI in remote projects --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
e5b88ac8c2
commit
fa0253bc5a
4 changed files with 43 additions and 23 deletions
|
@ -1693,6 +1693,13 @@ impl Workspace {
|
|||
}
|
||||
|
||||
fn add_folder_to_project(&mut self, _: &AddFolderToProject, cx: &mut ViewContext<Self>) {
|
||||
if self.project.read(cx).is_remote() {
|
||||
self.show_error(
|
||||
&anyhow!("Folders cannot yet be added to remote projects"),
|
||||
cx,
|
||||
);
|
||||
return;
|
||||
}
|
||||
let paths = cx.prompt_for_paths(PathPromptOptions {
|
||||
files: false,
|
||||
directories: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue