Properly restore termina current dir when deserializing the project

Kirill Bulatov created

Change summary

crates/terminal_view2/src/terminal_view.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Detailed changes

crates/terminal_view2/src/terminal_view.rs 🔗

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