include remote-wsl by default

This commit is contained in:
João Moreno
2020-11-17 15:29:34 +01:00
parent 60c625e9f0
commit 8a5f6fa5ce
3 changed files with 38 additions and 2 deletions

View File

@@ -161,7 +161,17 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
.pipe(rename(function (path) { path.dirname = path.dirname.replace(new RegExp('^' + out), 'out'); }))
.pipe(util.setExecutableBit(['**/*.sh']));
const extensions = gulp.src('.build/extensions/**', { base: '.build', dot: true });
const platformSpecificBuiltInExtensionsFilter = product.builtInExtensions.filter(ext => {
if (!ext.platforms) {
return false;
}
const set = new Set(ext.platforms);
return !set.has(platform);
}).map(ext => `!.build/extensions/${ext.name}/**`);
const extensions = gulp.src('.build/extensions/**', { base: '.build', dot: true })
.pipe(filter(['**', ...platformSpecificBuiltInExtensionsFilter]));
const sources = es.merge(src, extensions)
.pipe(filter(['**', '!**/*.js.map'], { dot: true }));
@@ -201,7 +211,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
const telemetry = gulp.src('.build/telemetry/**', { base: '.build/telemetry', dot: true });
const jsFilter = util.filter(data => !data.isDirectory() &&/\.js$/.test(data.path));
const jsFilter = util.filter(data => !data.isDirectory() && /\.js$/.test(data.path));
const root = path.resolve(path.join(__dirname, '..'));
const dependenciesSrc = _.flatten(productionDependencies.map(d => path.relative(root, d.path)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`]));

View File

@@ -21,6 +21,7 @@ interface IExtensionDefinition {
name: string;
version: string;
repo: string;
platforms?: string[];
metadata: {
id: string;
publisherId: {
@@ -82,6 +83,15 @@ function syncMarketplaceExtension(extension: IExtensionDefinition): Stream {
}
function syncExtension(extension: IExtensionDefinition, controlState: 'disabled' | 'marketplace'): Stream {
if (extension.platforms) {
const platforms = new Set(extension.platforms);
if (!platforms.has(process.platform)) {
log(ansiColors.gray('[skip]'), `${extension.name}@${extension.version}: Platform '${process.platform}' not supported: [${extension.platforms}]`, ansiColors.green('✔︎'));
return es.readArray([]);
}
}
switch (controlState) {
case 'disabled':
log(ansiColors.blue('[disabled]'), ansiColors.gray(extension.name));

View File

@@ -119,6 +119,22 @@
},
"publisherDisplayName": "Microsoft"
}
},
{
"name": "ms-vscode-remote.remote-wsl",
"version": "0.51.3",
"repo": "https://github.com/microsoft/vscode-remote-release",
"metadata": {
"id": "f0c5397b-d357-4197-99f0-cb4202f22818",
"publisherId": {
"publisherId": "ac9410a2-0d75-40ec-90de-b59bb705801d",
"publisherName": "ms-vscode",
"displayName": "Microsoft",
"flags": "verified"
},
"publisherDisplayName": "Microsoft"
},
"platforms": ["win32"]
}
],
"webBuiltInExtensions": [