mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
only focus when showing panel if active instance is not an extHost terminal
This commit is contained in:
parent
2e636ded90
commit
6729fbbc86
|
@ -137,7 +137,6 @@ export class TerminalViewPane extends ViewPane {
|
||||||
if (this._terminalsInitialized) {
|
if (this._terminalsInitialized) {
|
||||||
if (!hadTerminals) {
|
if (!hadTerminals) {
|
||||||
this._terminalService.createTerminal({ location: TerminalLocation.Panel });
|
this._terminalService.createTerminal({ location: TerminalLocation.Panel });
|
||||||
this._terminalGroupService.showPanel(true);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this._terminalsInitialized = true;
|
this._terminalsInitialized = true;
|
||||||
|
@ -146,6 +145,11 @@ export class TerminalViewPane extends ViewPane {
|
||||||
} else {
|
} else {
|
||||||
this._onDidChangeViewWelcomeState.fire();
|
this._onDidChangeViewWelcomeState.fire();
|
||||||
}
|
}
|
||||||
|
if (!this._terminalService.activeInstance?.shellLaunchConfig.extHostTerminalId) {
|
||||||
|
// showPanel is already called with !preserveFocus
|
||||||
|
// when extension host terminals are created
|
||||||
|
this._terminalGroupService.showPanel(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (hadTerminals) {
|
if (hadTerminals) {
|
||||||
this._terminalGroupService.activeGroup?.setVisible(visible);
|
this._terminalGroupService.activeGroup?.setVisible(visible);
|
||||||
|
|
Loading…
Reference in a new issue