@vscode/vsce 3.3.3-1 → 3.3.3-3
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 +22 -16
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -420,6 +420,7 @@ class TagsProcessor extends BaseProcessor {
|
|
|
420
420
|
const remoteMenu = doesContribute('menus', 'statusBar/remoteIndicator') ? ['remote-menu'] : [];
|
|
421
421
|
const chatParticipants = doesContribute('chatParticipants') ? ['chat-participant'] : [];
|
|
422
422
|
const languageModelTools = doesContribute('languageModelTools') ? ['tools', 'language-model-tools'] : [];
|
|
423
|
+
const mcp = doesContribute('modelContextServerCollections') ? ['mcp'] : [];
|
|
423
424
|
const localizationContributions = ((contributes && contributes['localizations']) ?? []).reduce((r, l) => [...r, `lp-${l.languageId}`, ...toLanguagePackTags(l.translations, l.languageId)], []);
|
|
424
425
|
const languageContributions = ((contributes && contributes['languages']) ?? []).reduce((r, l) => [...r, l.id, ...(l.aliases ?? []), ...toExtensionTags(l.extensions ?? [])], []);
|
|
425
426
|
const languageActivations = activationEvents
|
|
@@ -443,6 +444,7 @@ class TagsProcessor extends BaseProcessor {
|
|
|
443
444
|
...remoteMenu,
|
|
444
445
|
...chatParticipants,
|
|
445
446
|
...languageModelTools,
|
|
447
|
+
...mcp,
|
|
446
448
|
...localizationContributions,
|
|
447
449
|
...languageContributions,
|
|
448
450
|
...languageActivations,
|
|
@@ -740,27 +742,31 @@ exports.LicenseProcessor = LicenseProcessor;
|
|
|
740
742
|
class LaunchEntryPointProcessor extends BaseProcessor {
|
|
741
743
|
constructor(manifest) {
|
|
742
744
|
super(manifest);
|
|
743
|
-
this.
|
|
744
|
-
if (manifest.main) {
|
|
745
|
-
this.entryPoints.add(util.normalize(path.join('extension', this.appendJSExt(manifest.main))));
|
|
746
|
-
}
|
|
747
|
-
if (manifest.browser) {
|
|
748
|
-
this.entryPoints.add(util.normalize(path.join('extension', this.appendJSExt(manifest.browser))));
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
appendJSExt(filePath) {
|
|
752
|
-
if (filePath.endsWith('.js') || filePath.endsWith('.cjs')) {
|
|
753
|
-
return filePath;
|
|
754
|
-
}
|
|
755
|
-
return filePath + '.js';
|
|
745
|
+
this.seenFiles = new Set();
|
|
756
746
|
}
|
|
757
747
|
onFile(file) {
|
|
758
|
-
this.
|
|
748
|
+
this.seenFiles.add(util.normalize(file.path));
|
|
759
749
|
return Promise.resolve(file);
|
|
760
750
|
}
|
|
751
|
+
hasSeenEntrypointFile(filePath) {
|
|
752
|
+
return this.seenFiles.has(filePath) || this.seenFiles.has(filePath + '.js');
|
|
753
|
+
}
|
|
761
754
|
async onEnd() {
|
|
762
|
-
|
|
763
|
-
|
|
755
|
+
const missingEntryPoints = [];
|
|
756
|
+
if (this.manifest.main) {
|
|
757
|
+
const mainPath = util.normalize(path.join('extension', this.manifest.main));
|
|
758
|
+
if (!this.hasSeenEntrypointFile(mainPath)) {
|
|
759
|
+
missingEntryPoints.push(mainPath);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
if (this.manifest.browser) {
|
|
763
|
+
const browserPath = util.normalize(path.join('extension', this.manifest.browser));
|
|
764
|
+
if (!this.hasSeenEntrypointFile(browserPath)) {
|
|
765
|
+
missingEntryPoints.push(browserPath);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if (missingEntryPoints.length > 0) {
|
|
769
|
+
const files = missingEntryPoints.join(',\n ');
|
|
764
770
|
throw new Error(`Extension entrypoint(s) missing. Make sure these files exist and aren't ignored by '.vscodeignore':\n ${files}`);
|
|
765
771
|
}
|
|
766
772
|
}
|