Skip to content

Commit 252f689

Browse files
committed
Execution object should be able to be returned by getCellExecution at the time the change event is fired microsoft#142466
1 parent 194935b commit 252f689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/notebookExecutionStateServiceImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class NotebookExecutionStateService extends Disposable implements INotebo
115115
if (!exe) {
116116
exe = this._createNotebookCellExecution(notebook, cellHandle);
117117
notebookExecutionMap.set(cellHandle, exe);
118+
this._onDidChangeCellExecution.fire(new NotebookExecutionEvent(notebookUri, cellHandle, exe));
118119
}
119120

120121
return exe;
@@ -128,7 +129,6 @@ export class NotebookExecutionStateService extends Disposable implements INotebo
128129
exe.onDidComplete(() => this._onCellExecutionDidComplete(notebookUri, cellHandle, exe)));
129130
this._cellListeners.set(CellUri.generate(notebookUri, cellHandle), disposable);
130131

131-
this._onDidChangeCellExecution.fire(new NotebookExecutionEvent(notebookUri, cellHandle, exe));
132132
return exe;
133133
}
134134

0 commit comments

Comments
 (0)