You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking compatibility changes require C# Dev Kit v11 when both extensions are active. Users with an older Dev Kit version should install the v11 prerelease or switch to the release C# extension.
Compatibility guard
Check the installed C# Dev Kit major version during activation.
Allow standalone C# usage and Dev Kit v11 prereleases.
Stop activation for older versions with actionable guidance.
Coverage
Cover missing, compatible, future, prerelease, and incompatible Dev Kit versions.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The localization key does not match the source string, leaving the new error untranslated.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (1)
l10n/bundle.l10n.json:8
This bundle entry does not match the string passed to vscode.l10n.t in checkCSharpDevKitVersion.ts, so the new error cannot resolve through the localization bundle and this entry remains unused. Replace the key/value with the shorter message currently used by the implementation (and asserted by the unit test).
"This version of the C# extension requires C# Dev Kit version 11 or later. Please install the latest pre-release version of C# Dev Kit or use the release version of the C# extension.": "This version of the C# extension requires C# Dev Kit version 11 or later. Please install the latest pre-release version of C# Dev Kit or use the release version of the C# extension.",
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Fix the version metadata, extension-opening command, and incomplete recovery guidance before approval.
Review details
Suppressed comments (4)
CHANGELOG.md:7
The active changelog section is being renamed from 2.152.x to 11.1.x even though this repository's release notes use the 2..x scheme. This would put the new entry under a version that does not match the extension's release automation; restore the existing heading and let the normal snap process create/update release sections.
# 11.1.x
* Require C# Dev Kit version 11 or later (PR: [#9776](https://github.com/dotnet/vscode-csharp/pull/9776))
src/checkCSharpDevKitVersion.ts:29
extension.open is not the VS Code command for opening an installed extension. If the user selects this button, executeCommand rejects and the activation failure is reported instead of opening the Dev Kit page. Use the built-in workbench.extensions.action.showExtensionsWithIds command with the Dev Kit ID (and update the corresponding unit-test expectation).
The PR description says users with an older Dev Kit can either install the v11 prerelease or switch to the release C# extension, but this message only offers the prerelease Dev Kit path. Please include the release-extension alternative so users who cannot upgrade Dev Kit receive the documented recovery option; update the generated localization bundle with the same key as well.
const message = vscode.l10n.t(
'C# Dev Kit version 11 or later is required. Please switch to the pre-release version of the C# Dev Kit.'
);
version.json:3
This changes the packaged C# extension version from the repository's established 2.x release train to 11.1. The documented scheme uses 2..x versions, and feature PRs leave version.json for the branch-snap workflow; shipping this would produce an incorrectly versioned extension. Please revert this edit and let the release automation update the version.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Address the versioning concern and expand the incompatible-version guidance.
Review details
Suppressed comments (2)
src/checkCSharpDevKitVersion.ts:25
For an older Dev Kit, this modal only offers the prerelease path, while the PR description also promises a release C# fallback. The documented standalone path is to disable Dev Kit or enable dotnet.preferCSharpExtension; mention that alternative in this error so users who cannot install the prerelease have an actionable way to recover.
const message = vscode.l10n.t(
'C# Dev Kit version 11 or later is required. Please switch to the pre-release version of the C# Dev Kit.'
);
version.json:3
This changes the C# extension package from 2.152 to 11.1, although the compatibility requirement is for the separate C# Dev Kit extension. The repository's versioning scheme keeps prereleases on standard 2.x minor increments (CONTRIBUTING.md:192-196), and the branch-snap workflow owns version.json updates (azure-pipelines.yml:46-47; .github/workflows/branch-snap.yml:34-40). Please leave the extension version and matching changelog section to the normal release automation, or update the documented release process separately if an extension-major migration is intended.
This renames the current release-notes section from 2.152.x to 11.1.x, so the changelog no longer matches the repository's documented release-version scheme or the version that this feature branch started from. Keep the existing 2.152.x heading; release automation should create any new version section.
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
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.
Breaking compatibility changes require C# Dev Kit v11 when both extensions are active. Users with an older Dev Kit version should install the v11 prerelease or switch to the release C# extension.
Compatibility guard
Coverage