Always open the project panel for dev server projects (#12654)
Release Notes: - N/A
This commit is contained in:
+1
-19
@@ -219,25 +219,7 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
|
||||
workspace_handle.update(&mut cx, |workspace, cx| {
|
||||
workspace.add_panel(assistant_panel, cx);
|
||||
workspace.add_panel(project_panel, cx);
|
||||
{
|
||||
let project = workspace.project().read(cx);
|
||||
if project.is_local()
|
||||
|| project
|
||||
.dev_server_project_id()
|
||||
.and_then(|dev_server_project_id| {
|
||||
Some(
|
||||
dev_server_projects::Store::global(cx)
|
||||
.read(cx)
|
||||
.dev_server_for_project(dev_server_project_id)?
|
||||
.ssh_connection_string
|
||||
.is_some(),
|
||||
)
|
||||
})
|
||||
.unwrap_or(false)
|
||||
{
|
||||
workspace.add_panel(terminal_panel, cx);
|
||||
}
|
||||
}
|
||||
workspace.add_panel(terminal_panel, cx);
|
||||
workspace.add_panel(channels_panel, cx);
|
||||
workspace.add_panel(chat_panel, cx);
|
||||
workspace.add_panel(notification_panel, cx);
|
||||
|
||||
Reference in New Issue
Block a user