@vscode/vsce 3.6.3-1 → 3.6.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 +2 -0
- package/out/validation.js +13 -1
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -1027,6 +1027,8 @@ function validateManifestForPackaging(manifest) {
|
|
|
1027
1027
|
throw new Error(`Manifest contains invalid value '${manifest.sponsor.url}' in the 'sponsor' property. It must be a valid URL with a HTTP or HTTPS protocol.`);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
+
(0, validation_1.validateExtensionDependencies)(manifest.extensionDependencies, 'extensionDependencies');
|
|
1031
|
+
(0, validation_1.validateExtensionDependencies)(manifest.extensionPack, 'extensionPack');
|
|
1030
1032
|
return {
|
|
1031
1033
|
...manifest,
|
|
1032
1034
|
name,
|
package/out/validation.js
CHANGED
|
@@ -26,9 +26,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.validateVSCodeTypesCompatibility = exports.validateEngineCompatibility = exports.validateVersion = exports.validateExtensionName = exports.validatePublisher = void 0;
|
|
29
|
+
exports.validateExtensionDependencies = exports.validateVSCodeTypesCompatibility = exports.validateEngineCompatibility = exports.validateVersion = exports.validateExtensionName = exports.validatePublisher = void 0;
|
|
30
30
|
const semver = __importStar(require("semver"));
|
|
31
31
|
const parse_semver_1 = __importDefault(require("parse-semver"));
|
|
32
|
+
const util_1 = require("./util");
|
|
32
33
|
const nameRegex = /^[a-z0-9][a-z0-9\-]*$/i;
|
|
33
34
|
function validatePublisher(publisher) {
|
|
34
35
|
if (!publisher) {
|
|
@@ -125,4 +126,15 @@ function validateVSCodeTypesCompatibility(engineVersion, typeVersion) {
|
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
exports.validateVSCodeTypesCompatibility = validateVSCodeTypesCompatibility;
|
|
129
|
+
function validateExtensionDependencies(dependencies, fieldName) {
|
|
130
|
+
if (!dependencies || dependencies.length === 0) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
for (const dep of dependencies) {
|
|
134
|
+
if (dep.toLowerCase() === 'github.copilot') {
|
|
135
|
+
util_1.log.warn(`The "${dep}" extension is being deprecated in favor of the "${dep}-chat" extension. Please use "${dep}-chat" in ${fieldName} instead and remove any references to "${dep}".`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.validateExtensionDependencies = validateExtensionDependencies;
|
|
128
140
|
//# sourceMappingURL=validation.js.map
|