Properly restore termina current dir when deserializing the project

This commit is contained in:
Kirill Bulatov 2023-12-19 06:44:26 +02:00
parent 91f1be213b
commit 4b74f30d0a

View File

@ -752,8 +752,7 @@ impl Item for TerminalView {
) -> Task<anyhow::Result<View<Self>>> {
let window = cx.window_handle();
cx.spawn(|pane, mut cx| async move {
let cwd = None;
TERMINAL_DB
let cwd = TERMINAL_DB
.get_working_directory(item_id, workspace_id)
.log_err()
.flatten()