Skip to content
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

Enable cell cancellation for Interactive notebooks #19005

Merged
merged 13 commits into from
Apr 12, 2022

Conversation

corivera
Copy link
Member

The main change here is the implementation of the interrupt() method in VSCodeKernel. A bunch of the other changes are related to URI usage in this code path. I changed the URI fields in IExecuteRequest to be strings like the other URI fields in our extension APIs. The actual URI object wasn't being deserialized properly over RPC, so if you tried to call toString() on that object it would return the generic Object string. So now anytime we need to use the actual URI we call URI.parse() on that string. A lot of areas were already using a string representation anyway, like getDocument() in ExtHostNotebookDocumentsAndEditors.

Fixes #18979

@corivera corivera requested a review from a team April 11, 2022 22:07
@coveralls
Copy link

coveralls commented Apr 11, 2022

Pull Request Test Coverage Report for Build 2157622165

  • 0 of 31 (0.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 42.215%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/sql/workbench/api/common/extHostNotebook.ts 0 3 0.0%
src/sql/workbench/api/common/notebooks/vscodeExecuteProvider.ts 0 13 0.0%
src/sql/workbench/api/common/notebooks/adsNotebookController.ts 0 15 0.0%
Totals Coverage Status
Change from base Build 2157242425: -0.01%
Covered Lines: 27647
Relevant Lines: 61217

💛 - Coveralls

@corivera corivera merged commit d98a421 into main Apr 12, 2022
@corivera corivera deleted the corivera/interactiveCellCancellation branch April 12, 2022 22:12
corivera added a commit that referenced this pull request Apr 13, 2022
* Also added a check to prevent multiple Interactive cells from executing simultaneously.
chlafreniere pushed a commit that referenced this pull request Apr 13, 2022
* Also added a check to prevent multiple Interactive cells from executing simultaneously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cell cancellation doesn't work in .NET Interactive notebooks
4 participants