Skip to content

Commit

Permalink
Do not auto run source action when there is pending kernel detection. (
Browse files Browse the repository at this point in the history
…#167763)

* Do not auto run source action when there is pending kernel detection.

* resolve comments
  • Loading branch information
rebornix authored Nov 30, 2022
1 parent bffd018 commit 56d73a4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export class NotebookExecutionService implements INotebookExecutionService, IDis
}

let kernel = this._notebookKernelService.getSelectedOrSuggestedKernel(notebook);
if (!kernel) {
const noPendingKernelDetections = this._notebookKernelService.getKernelDetectionTasks(notebook).length === 0;
// do not auto run source action when there is pending kernel detections
if (!kernel && noPendingKernelDetections) {
kernel = await this.resolveSourceActions(notebook, contextKeyService);
}

Expand Down

0 comments on commit 56d73a4

Please sign in to comment.