Always have cmd-o open a local project (#19376)

Release Notes:

- Fixed `cmd-o` in an SSH project to always open a local project
This commit is contained in:
Conrad Irwin 2024-10-17 10:36:53 -06:00 committed by GitHub
parent e6b9a8ef9b
commit 65fb2782eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1897,11 +1897,7 @@ impl Workspace {
directories: true,
multiple: true,
},
if self.project.read(cx).is_via_ssh() {
DirectoryLister::Project(self.project.clone())
} else {
DirectoryLister::Local(self.app_state.fs.clone())
},
DirectoryLister::Local(self.app_state.fs.clone()),
cx,
);