SSH Remoting: Fix Save As (#19517)

Co-Authored-By: Mikayla <mikayla@zed.dev>

Closes #ISSUE

Release Notes:

- SSH Remoting: Fix SaveAs to pick the file on the remote

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin 2024-10-21 13:41:48 -06:00 committed by GitHub
parent cb3eb75712
commit 6b7d85b769
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1528,7 +1528,7 @@ impl Workspace {
&mut self,
cx: &mut ViewContext<Self>,
) -> oneshot::Receiver<Option<ProjectPath>> {
if self.project.read(cx).is_via_collab()
if (self.project.read(cx).is_via_collab() || self.project.read(cx).is_via_ssh())
|| !WorkspaceSettings::get_global(cx).use_system_path_prompts
{
let prompt = self.on_prompt_for_new_path.take().unwrap();