Always open the project panel for dev server projects (#12654)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-06-04 16:07:12 -06:00 committed by GitHub
parent 74cb92f9cc
commit c7d56302d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 29 deletions

View file

@ -1281,6 +1281,19 @@ impl Project {
self.dev_server_project_id
}
pub fn supports_remote_terminal(&self, cx: &AppContext) -> bool {
let Some(id) = self.dev_server_project_id else {
return false;
};
let Some(server) = dev_server_projects::Store::global(cx)
.read(cx)
.dev_server_for_project(id)
else {
return false;
};
server.ssh_connection_string.is_some()
}
pub fn ssh_connection_string(&self, cx: &ModelContext<Self>) -> Option<SharedString> {
if self.is_local() {
return None;