Always open the project panel for dev server projects (#12654)
Release Notes: - N/A
This commit is contained in:
parent
74cb92f9cc
commit
c7d56302d2
4 changed files with 51 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue