Don't create a terminal on panel show without proc support
Fixes #117953
This commit is contained in:
parent
c55aff6379
commit
8933c1564d
1 changed files with 8 additions and 6 deletions
|
@ -129,13 +129,15 @@ export class TerminalViewPane extends ViewPane {
|
|||
this._register(this.onDidChangeBodyVisibility(visible => {
|
||||
if (visible) {
|
||||
const hadTerminals = !!this._terminalService.terminalTabs.length;
|
||||
if (this._terminalsInitialized) {
|
||||
if (!hadTerminals) {
|
||||
this._terminalService.createTerminal();
|
||||
if (this._terminalService.isProcessSupportRegistered) {
|
||||
if (this._terminalsInitialized) {
|
||||
if (!hadTerminals) {
|
||||
this._terminalService.createTerminal();
|
||||
}
|
||||
} else {
|
||||
this._terminalsInitialized = true;
|
||||
this._terminalService.initializeTerminals();
|
||||
}
|
||||
} else {
|
||||
this._terminalsInitialized = true;
|
||||
this._terminalService.initializeTerminals();
|
||||
}
|
||||
|
||||
this._updateTheme();
|
||||
|
|
Loading…
Reference in a new issue