We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcd097c commit e120edcCopy full SHA for e120edc
src/vs/workbench/contrib/terminal/browser/terminalTabbedView.ts
@@ -592,10 +592,8 @@ export class TerminalTabbedView extends Disposable {
592
// be focused. So wait for connection to finish, then focus.
593
const previousActiveElement = this._tabListElement.ownerDocument.activeElement;
594
if (previousActiveElement) {
595
- // TODO: Improve lifecycle management this event should be disposed after first fire
596
const listener = this._register(Event.once(this._terminalService.onDidChangeConnectionState)(() => {
597
// Only focus the terminal if the activeElement has not changed since focus() was called
598
- // TODO: Hack
599
if (dom.isActiveElement(previousActiveElement)) {
600
this._focus();
601
}
0 commit comments