Bundle in-tree extensions as npm/tgz (#2807)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-05-19 09:40:09 +03:00
1 parent 08db118832
commit f168f137e5
16 files changed
+1237 -698

No files matched your search

+4 -1
View File
@@ -342,10 +342,13 @@ export class ExtensionDiscovery extends Singleton {
const manifest = await fse.readJson(manifestPath);
const installedManifestPath = this.getInstalledManifestPath(manifest.name);
const isEnabled = isBundled || ExtensionsStore.getInstance().isEnabled(installedManifestPath);
const extensionDir = path.dirname(manifestPath);
const npmPackage = path.join(extensionDir, `${manifest.name}-${manifest.version}.tgz`);
const absolutePath = (await fse.pathExists(npmPackage)) ? npmPackage : extensionDir;
return {
id: installedManifestPath,
absolutePath: path.dirname(manifestPath),
absolutePath,
manifestPath: installedManifestPath,
manifest,
isBundled,