Plugin api window.activeTerminal can't get the right active terminal #6797
Labels
bug
bugs found in the application
help wanted
issues meant to be picked up, require help
terminal
issues related to the terminal
Description
I've written a vscode extension(also a theia plugin) which use the api window.activeTerminal. It works well on vscode but not on theia.
I've debugged the theia source code and found the bug here:
theia/packages/terminal/src/browser/terminal-frontend-contribution.ts
Lines 116 to 120 in c99cc1d
The
onDidChangeCurrentTerminal
should not be assignedthis.onDidCreateTerminalEmitter.event
, it shoud bethis.onDidChangeCurrentTerminalEmitter.event
Reproduction Steps
TerminalServiceMainImpl.updateCurrentTerminal
methodor you can try to write a plugin use window.activeTerminal api
OS and Theia version:
master
Diagnostics:
The text was updated successfully, but these errors were encountered: