terminal: Update terminal reopening from global to per-workspace (#25336)
Closes #7145 Currently, terminal persistence is global, i.e. split configurations are restored across all workspaces. This PR changes it to per-workspace, so configurations are restored only within the same workspace. Opening a new window will start with a fresh terminal. https://github.com/user-attachments/assets/d43fe747-9f28-4723-b409-e8dbb3a23912 Release Notes: - Improved terminal reopening to be per workspace instead of global.
This commit is contained in:
parent
144d8a1db6
commit
3759e0bf55
2 changed files with 72 additions and 24 deletions
|
@ -4385,6 +4385,10 @@ impl Workspace {
|
|||
self.database_id
|
||||
}
|
||||
|
||||
pub fn session_id(&self) -> Option<String> {
|
||||
self.session_id.clone()
|
||||
}
|
||||
|
||||
fn local_paths(&self, cx: &App) -> Option<Vec<Arc<Path>>> {
|
||||
let project = self.project().read(cx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue