Improve default extensionKind detection

This commit is contained in:
Alex Dima
2020-07-23 23:24:35 +02:00
parent 2fa41fb23e
commit fd91d449f9
2 changed files with 11 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ async function getDefaultExtensionInfos() {
let extensionArg = args['extension'];
if (!extensionArg) {
return { extensions, locations }
return { extensions, locations };
}
const extensionPaths = Array.isArray(extensionArg) ? extensionArg : [extensionArg];
@@ -164,7 +164,6 @@ async function getExtensionPackageJSON(extensionPath) {
fancyLog(`${ansiColors.yellow('Warning')}: Could not find ${mainFilePath}. Use ${ansiColors.cyan('yarn gulp watch-web')} to build the built-in extensions.`);
}
}
packageJSON.extensionKind = ['web']; // enable for Web
const packageNLSPath = path.join(extensionPath, 'package.nls.json');
const packageNLSExists = await exists(packageNLSPath);