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

@ -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);