mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Merge pull request #32032 from Microsoft/amqi/update-window-shellname
Fix NPE
This commit is contained in:
@@ -161,7 +161,11 @@ export class TerminalInstance implements ITerminalInstance {
|
||||
this._createXterm();
|
||||
|
||||
if (platform.isWindows) {
|
||||
this._processReady.then(() => this._windowsShellHelper = new WindowsShellHelper(this._processId, this._shellLaunchConfig.executable, this, this._xterm));
|
||||
this._processReady.then(() => {
|
||||
if (!this._isDisposed) {
|
||||
this._windowsShellHelper = new WindowsShellHelper(this._processId, this._shellLaunchConfig.executable, this, this._xterm);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Only attach xterm.js to the DOM if the terminal panel has been opened before.
|
||||
|
||||
Reference in New Issue
Block a user