Repository navigation
Reset notebook controller language restrictions - #347068
Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit intoNov 9, 2026
Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change to clear notebook language restrictions when supported languages are reset.
No open issues 🎉
What changed in this PR
Fixes #347067 by ensuring that resetting NotebookController.supportedLanguages to undefined clears language restrictions on the main thread while preserving undefined in the public getter.
Changes:
- Normalize undefined supported languages to
[]in update transport data. - Add API-bridge regression coverage for both
undefinedand empty-array resets. - Add public API tests confirming cell execution succeeds after either reset.
| File | Description |
|---|---|
src/vs/workbench/api/test/browser/extHostNotebookKernel.test.ts |
Verify resets clear main-thread restrictions and preserve public getter values. |
src/vs/workbench/api/common/extHostNotebookKernels.ts |
Send [] for undefined supported languages in kernel updates. |
extensions/vscode-api-tests/src/singlefolder-tests/notebook.kernel.test.ts |
Verify previously excluded cells execute after language restrictions are reset. |
Review effort: Balanced
Collaborator
|
Thank you for the fix! |
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
November 9, 2026 19:28
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 9, 2026
roblourens
approved these changes
Nov 9, 2026
Bhavya U (bhavyaus)
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #347067
Normalise an undefined supported-language update to
[]in the transport DTO so the main thread clears the old restriction. The public getter retains the assignedundefined.The real JSON API-bridge regression and public notebook execution regression fail before the fix; explicit-empty-array controls pass. The public regression also reproduces in installed 1.145.2. Validation passes 33 unit/service tests and 14 API tests with one existing skip, plus client typechecking, API extension compilation and targeted ESLint.