mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 00:46:00 +01:00
chore: remove stale TODOs about lifecycle hack
This commit is contained in:
@@ -592,10 +592,8 @@ export class TerminalTabbedView extends Disposable {
|
||||
// be focused. So wait for connection to finish, then focus.
|
||||
const previousActiveElement = this._tabListElement.ownerDocument.activeElement;
|
||||
if (previousActiveElement) {
|
||||
// TODO: Improve lifecycle management this event should be disposed after first fire
|
||||
const listener = this._register(Event.once(this._terminalService.onDidChangeConnectionState)(() => {
|
||||
// Only focus the terminal if the activeElement has not changed since focus() was called
|
||||
// TODO: Hack
|
||||
if (dom.isActiveElement(previousActiveElement)) {
|
||||
this._focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user