@vscode/vsce 2.31.0 → 2.31.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/package.js +2 -0
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -354,6 +354,7 @@ class ManifestProcessor extends BaseProcessor {
|
|
|
354
354
|
: '',
|
|
355
355
|
enabledApiProposals: manifest.enabledApiProposals ? manifest.enabledApiProposals.join(',') : '',
|
|
356
356
|
preRelease: !!this.options.preRelease,
|
|
357
|
+
executesCode: !!(manifest.main ?? manifest.browser),
|
|
357
358
|
sponsorLink: manifest.sponsor?.url || '',
|
|
358
359
|
};
|
|
359
360
|
if (isGitHub) {
|
|
@@ -1085,6 +1086,7 @@ async function toVsixManifest(vsix) {
|
|
|
1085
1086
|
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="${escape(vsix.localizedLanguages)}" />
|
|
1086
1087
|
<Property Id="Microsoft.VisualStudio.Code.EnabledApiProposals" Value="${escape(vsix.enabledApiProposals)}" />
|
|
1087
1088
|
${vsix.preRelease ? `<Property Id="Microsoft.VisualStudio.Code.PreRelease" Value="${escape(vsix.preRelease)}" />` : ''}
|
|
1089
|
+
${vsix.executesCode ? `<Property Id="Microsoft.VisualStudio.Code.ExecutesCode" Value="${escape(vsix.executesCode)}" />` : ''}
|
|
1088
1090
|
${vsix.sponsorLink
|
|
1089
1091
|
? `<Property Id="Microsoft.VisualStudio.Code.SponsorLink" Value="${escape(vsix.sponsorLink)}" />`
|
|
1090
1092
|
: ''}
|