mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 06:38:23 +00:00
Ensure xterm exists before creating WindowsShellHelper
This commit is contained in:
parent
fe28c5c502
commit
7cf2a99139
1 changed files with 8 additions and 8 deletions
|
@ -153,16 +153,16 @@ export class TerminalInstance implements ITerminalInstance {
|
|||
this._initDimensions();
|
||||
this._createProcess();
|
||||
|
||||
if (platform.isWindows) {
|
||||
this._processReady.then(() => {
|
||||
if (!this._isDisposed) {
|
||||
this._windowsShellHelper = new WindowsShellHelper(this._processId, this, this._xterm);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this._xtermReadyPromise = this._createXterm();
|
||||
this._xtermReadyPromise.then(() => {
|
||||
if (platform.isWindows) {
|
||||
this._processReady.then(() => {
|
||||
if (!this._isDisposed) {
|
||||
this._windowsShellHelper = new WindowsShellHelper(this._processId, this, this._xterm);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Only attach xterm.js to the DOM if the terminal panel has been opened before.
|
||||
if (_container) {
|
||||
this.attachToElement(_container);
|
||||
|
|
Loading…
Reference in a new issue