tab_switcher: Add support for tab switcher in terminal panel (#9963)

tab switcher retrieves active pane from workspace, but that function is
not aware of Terminal Panel's pane. Thus in this PR we retrieve it
manually and use it as the active pane if terminal panel has focus.

Release Notes:

- Fixed tab switcher not working in terminal panel.
This commit is contained in:
Piotr Osiewicz 2024-03-30 00:19:02 +01:00 committed by GitHub
parent 79b3b0c8ff
commit ed5bfcdddc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 1 deletions

View file

@ -591,6 +591,9 @@ impl TerminalPanel {
Some(())
}
pub fn pane(&self) -> &View<Pane> {
&self.pane
}
}
async fn wait_for_terminals_tasks(