Execution object should be able to be returned by getCellExecution at the time the change event is fired #142466

This commit is contained in:
Rob Lourens 2022-02-07 21:25:05 -08:00
parent 0283cec6ec
commit 666ae990e6

View file

@ -115,6 +115,7 @@ export class NotebookExecutionStateService extends Disposable implements INotebo
if (!exe) {
exe = this._createNotebookCellExecution(notebook, cellHandle);
notebookExecutionMap.set(cellHandle, exe);
this._onDidChangeCellExecution.fire(new NotebookExecutionEvent(notebookUri, cellHandle, exe));
}
return exe;
@ -128,7 +129,6 @@ export class NotebookExecutionStateService extends Disposable implements INotebo
exe.onDidComplete(() => this._onCellExecutionDidComplete(notebookUri, cellHandle, exe)));
this._cellListeners.set(CellUri.generate(notebookUri, cellHandle), disposable);
this._onDidChangeCellExecution.fire(new NotebookExecutionEvent(notebookUri, cellHandle, exe));
return exe;
}