提交 7cf2a991 编写于 作者: D Daniel Imms

Ensure xterm exists before creating WindowsShellHelper

上级 fe28c5c5
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册