Fix null ref error in terminal service (#20656)

This commit is contained in:
Charles Gagnon
2022-09-23 12:22:13 -07:00
committed by GitHub
parent d047a8f84c
commit c7eefb28cb

View File

@@ -464,7 +464,7 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
if (id === null) {
this._activeTerminal = undefined;
if (original !== this._activeTerminal) {
this._onDidChangeActiveTerminal.fire(this._activeTerminal.value);
this._onDidChangeActiveTerminal.fire(undefined); // {{SQL CARBON EDIT}} This was set to undefined above so send that - this will be replaced with later refactorings that VS Code did
}
return;
}