Skip to content

Clarify in docs the recommendations around bundling/minifying extensions during publish #250982

Closed
@DanTup

Description

@DanTup

A long time ago I started bundling/minifying my extension code, as appeared to be recommended by VS Code for performance reasons. The examples on https://code.visualstudio.com/api/working-with-extensions/bundling-extension still show minification settings (and I think vsce warns if you have large or large numbers of files).

However recently one of my extension published recently failed to publish (with what I presume was a false-positive or failed virus check) and while trying to understand this, the VS Marketplace team told me:

Please be aware that our team is in the process of enforcing stricter obfuscation policies to enhance transparency and security within the VS Marketplace. Our recommendation is to remove the obfuscation to ensure successful publication.

And later:

Avoid Obfuscation: Do not obfuscate your code unless absolutely necessary. Obfuscation may trigger security reviews or takedowns.

I'm happy to remove the minification of my code, but I feel like these recommendations conflict, and I think it should be documented better (at least here, but ideally on the page linked above) so it's easier for extension authors to ensure they're doing the right thing.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions