Allow splitting terminal items in the central pane group (#22088)
Follow-up of https://github.com/zed-industries/zed/pull/22004 Closes https://github.com/zed-industries/zed/issues/22078 Release Notes: - Fixed splitting terminal items in the center
This commit is contained in:
parent
88f7942f11
commit
ff2ad63037
6 changed files with 294 additions and 256 deletions
|
@ -251,7 +251,13 @@ async fn deserialize_pane_group(
|
|||
let terminal = terminal.await.ok()?;
|
||||
pane.update(cx, |pane, cx| {
|
||||
let terminal_view = Box::new(cx.new_view(|cx| {
|
||||
TerminalView::new(terminal, workspace.clone(), Some(workspace_id), cx)
|
||||
TerminalView::new(
|
||||
terminal,
|
||||
workspace.clone(),
|
||||
Some(workspace_id),
|
||||
project.downgrade(),
|
||||
cx,
|
||||
)
|
||||
}));
|
||||
pane.add_item(terminal_view, true, false, None, cx);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue