ssh remoting: Fix wrong working directory for SSH terminals (#19672)

Before this change, we would save the working directory *on the client*
of each shell that was running in a terminal.

While it's technically right, it's wrong in all of these cases where
`working_directory` was used:

- in inline assistant
- when resolving file paths in the terminal output
- when serializing the current working dir and deserializing it on
restart

Release Notes:

- Fixed terminals opened on remote hosts failing to deserialize with an
error message after restarting Zed.
This commit is contained in:
Thorsten Ball
2024-10-24 13:52:26 +02:00
committed by GitHub
parent 4214ed927f
commit efc4d3efdf
3 changed files with 24 additions and 7 deletions
+1
View File
@@ -240,6 +240,7 @@ impl Project {
settings.cursor_shape.unwrap_or_default(),
settings.alternate_scroll,
settings.max_scroll_history_lines,
ssh_details.is_some(),
window,
completion_tx,
cx,