Skip to content

Cancelling should invoke a single interrupt #12106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2020

Conversation

DonJayamanne
Copy link

For #10496

Runing entire notebook and clicking cancel would result in kernel being interrupted n times (where n = number of cells).
I.e. user clicks cancel once, but we end up interrupting multiple times.

this.commandManager.executeCommand(Commands.NotebookEditorInterruptKernel).then(noop, noop);
}
});

cell.metadata.runStartTime = new Date().getTime();
cell.metadata.runState = vscodeNotebookEnums.NotebookCellRunState.Running;

if (!findMappedNotebookCellModel(cell, model.cells)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we don't need it anymore. Was there due to missing VSC API.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 2, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

@DonJayamanne DonJayamanne merged commit ac79a17 into microsoft:master Jun 2, 2020
@DonJayamanne DonJayamanne deleted the interruptIssues branch June 2, 2020 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants