mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-05 15:36:22 +01:00
1 parent
8e5179d1dd
commit
cb53ff5eb8
1 file changed
+4
-1
@@ -137,7 +137,10 @@ export class TerminalPanel extends Panel {
|
||||
}
|
||||
|
||||
public focus(): void {
|
||||
this._terminalService.getActiveInstance().focus(true);
|
||||
const activeInstance = this._terminalService.getActiveInstance();
|
||||
if (activeInstance) {
|
||||
activeInstance.focus(true);
|
||||
}
|
||||
}
|
||||
|
||||
private _attachEventListeners(): void {
|
||||
|
||||
Reference in new issue
Block a user