@vscode/test-web 0.0.75 → 0.0.76
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/server/extensions.js +10 -1
- package/package.json +1 -1
package/out/server/extensions.js
CHANGED
|
@@ -48,7 +48,7 @@ async function scanForExtensions(rootPath, serverURI) {
|
|
|
48
48
|
exports.prebuiltExtensionsLocation = '.build/builtInExtensions';
|
|
49
49
|
async function getScannedBuiltinExtensions(vsCodeDevLocation) {
|
|
50
50
|
// use the build utility as to not duplicate the code
|
|
51
|
-
const extensionsUtil = await
|
|
51
|
+
const extensionsUtil = await getExtensionsUtil(vsCodeDevLocation);
|
|
52
52
|
const localExtensions = extensionsUtil.scanBuiltinExtensions(path.join(vsCodeDevLocation, 'extensions'));
|
|
53
53
|
const prebuiltExtensions = extensionsUtil.scanBuiltinExtensions(path.join(vsCodeDevLocation, exports.prebuiltExtensionsLocation));
|
|
54
54
|
for (const ext of localExtensions) {
|
|
@@ -65,3 +65,12 @@ async function getScannedBuiltinExtensions(vsCodeDevLocation) {
|
|
|
65
65
|
}
|
|
66
66
|
return localExtensions.concat(prebuiltExtensions);
|
|
67
67
|
}
|
|
68
|
+
async function getExtensionsUtil(vsCodeDevLocation) {
|
|
69
|
+
const base = path.join(vsCodeDevLocation, 'build', 'lib');
|
|
70
|
+
try {
|
|
71
|
+
return await Promise.resolve(`${path.join(base, 'extensions.ts')}`).then(s => require(s));
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
return await Promise.resolve(`${path.join(base, 'extensions.js')}`).then(s => require(s));
|
|
75
|
+
}
|
|
76
|
+
}
|