A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Hi Team,
The error "Your extension has suspicious content" generally appears when the validation system in VS Marketplace detects any missing or unsafe data in the metadata of the extension or its packaging.
One of the issues found during the inspection of the package.json file is that the activationEvents property is left blank:
"activationEvents": []
Instead, you can set a valid activationEvent like:
"activationEvents": [
"onCommand:extension.start"
]
Following are some other things to keep in mind:
Ensure that all the links such as homepage, repository, bugs.url are active and available publicly.
The GitHub repository should be public.
Eliminate all unnecessary/minimized files in the .vsix packaging.
To publish using the established Visual Studio Code Extensions (VSCE) procedure you can utilize an Azure DevOps Personal Access Token (PAT) as follows:
Recommended Commands:
vsce login
vsce package
vsce publish
The problem here is likely due to issues with your metadata meeting validation criteria or security checks of the Marketplace which could prevent your extension from functioning correctly, however, if you’ve correctly updated and installed your activation events and republished via the approved VSCE and Azure DevOps PAT process, this should resolve the problem.