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

Add compatibility check of VSIX TargetPlatform #8910

Merged
merged 7 commits into from
Feb 23, 2022
Merged

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Feb 23, 2022

Addresses: #8908

This should help catch issues with the wrong VSIX being deployed ( microsoft/vscode#141696 ) before other wrong behaviors arise.

Adds an error dialog if the specified target is incompatible. Adds a warning dialog if compatible but not matching (i.e. using x86 on x64 Windows). Note that this check is done against the architecture of VS Code, so an x86 build of VS Code on x64 Windows will appear as x86.

Feedback on the message text would be welcome.

Uses regex to find the XML attribute, as Bob had suggested avoiding incurring use of an XML parser due to the frequency of security vulnerabilities in XML parser libraries.

Extension/src/common.ts Outdated Show resolved Hide resolved
Add check for Windows 11.
@Colengms Colengms merged commit 125b657 into main Feb 23, 2022
@Colengms Colengms deleted the coleng/detect_wrong_vsix branch February 23, 2022 22:46
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants