mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Execution object should be able to be returned by getCellExecution at the time the change event is fired #142466
This commit is contained in:
parent
0283cec6ec
commit
666ae990e6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue