Don't create a terminal on panel show without proc support

Fixes #117953
This commit is contained in:
Daniel Imms 2021-03-24 03:10:00 -07:00
parent c55aff6379
commit 8933c1564d
No known key found for this signature in database
GPG key ID: D12BE8272D6284CC

View file

@ -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();