Fixed issue where serialized terminal working directories would be lost in complex interactions
Co-authored-by: Kay <kay@zed.dev> Co-authored-by: Julia <julia@zed.dev>
This commit is contained in:
parent
e743f3b1d8
commit
828f406b4f
2 changed files with 4 additions and 5 deletions
|
@ -42,10 +42,10 @@ impl TerminalDb {
|
|||
}
|
||||
|
||||
query! {
|
||||
pub async fn take_working_directory(item_id: ItemId, workspace_id: WorkspaceId) -> Result<Option<PathBuf>> {
|
||||
DELETE FROM terminals
|
||||
pub fn get_working_directory(item_id: ItemId, workspace_id: WorkspaceId) -> Result<Option<PathBuf>> {
|
||||
SELECT working_directory
|
||||
FROM terminals
|
||||
WHERE item_id = ? AND workspace_id = ?
|
||||
RETURNING working_directory
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue