Map initial approach to string opening
This commit is contained in:
parent
f52722b6a4
commit
23f25562b5
4 changed files with 55 additions and 17 deletions
|
@ -261,10 +261,14 @@ impl TerminalPanel {
|
|||
.create_terminal(working_directory, window_id, cx)
|
||||
.log_err()
|
||||
}) {
|
||||
let terminal =
|
||||
Box::new(cx.add_view(|cx| {
|
||||
TerminalView::new(terminal, workspace.database_id(), cx)
|
||||
}));
|
||||
let terminal = Box::new(cx.add_view(|cx| {
|
||||
TerminalView::new(
|
||||
terminal,
|
||||
workspace.weak_handle(),
|
||||
workspace.database_id(),
|
||||
cx,
|
||||
)
|
||||
}));
|
||||
pane.update(cx, |pane, cx| {
|
||||
let focus = pane.has_focus();
|
||||
pane.add_item(terminal, true, focus, None, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue