suggest bundling

This commit is contained in:
Johannes Rieken 2019-03-04 14:48:18 +01:00
parent 61afd8f7d0
commit 7d6523d97d

View file

@ -840,6 +840,9 @@ export async function pack(options: IPackageOptions = {}): Promise<IPackageResul
manifest = await prepublish(cwd, manifest);
const files = await collect(manifest, options);
if (files.length > 100) {
console.log(`This extension consists of ${files.length} separate files. For performance reasons, you should bundle your extension: https://aka.ms/vscode-bundle-extension`);
}
const packagePath = await writeVsix(files, path.resolve(options.packagePath || defaultPackagePath(cwd, manifest)));
return { manifest, packagePath, files };