Public release release-e47f9c27bbeb
Source commit: e47f9c27bbebe6759f6b6fe7b12fd00bb20d116d Public tree identity: sha256:4c1af1dfd67d3f2b5088531ea8727b11124b013d2251a4d5088f51a6424c0196
This commit is contained in:
parent
3a4d4fa7ae
commit
9223c54939
30 changed files with 4195 additions and 434 deletions
|
|
@ -5,16 +5,20 @@ const os = require("os");
|
|||
const path = require("path");
|
||||
const assert = require("assert");
|
||||
|
||||
const extension = require("../vscode-extension/extension");
|
||||
const packageJson = require("../vscode-extension/package.json");
|
||||
const extensionRoot = path.resolve(
|
||||
process.env.CLUSTERFLUX_VSCODE_EXTENSION_ROOT ||
|
||||
path.join(__dirname, "../vscode-extension")
|
||||
);
|
||||
const extension = require(path.join(extensionRoot, "extension.js"));
|
||||
const packageJson = require(path.join(extensionRoot, "package.json"));
|
||||
const extensionSource = fs.readFileSync(
|
||||
path.join(__dirname, "../vscode-extension/extension.js"),
|
||||
path.join(extensionRoot, "extension.js"),
|
||||
"utf8"
|
||||
);
|
||||
const repo = path.resolve(__dirname, "..");
|
||||
|
||||
assert.strictEqual(packageJson.main, "./extension.js");
|
||||
assert(fs.existsSync(path.join(__dirname, "../vscode-extension", packageJson.main)));
|
||||
assert(fs.existsSync(path.join(extensionRoot, packageJson.main)));
|
||||
assert.deepStrictEqual(packageJson.dependencies || {}, {});
|
||||
const root = fs.mkdtempSync(path.join(os.tmpdir(), "clusterflux-vscode-"));
|
||||
fs.mkdirSync(path.join(root, "envs/linux"), { recursive: true });
|
||||
|
|
@ -157,7 +161,7 @@ assert(
|
|||
"package.json must contribute a Clusterflux activity-bar container"
|
||||
);
|
||||
assert(
|
||||
fs.existsSync(path.join(__dirname, "../vscode-extension/resources/clusterflux.svg")),
|
||||
fs.existsSync(path.join(extensionRoot, "resources/clusterflux.svg")),
|
||||
"Clusterflux activity-bar icon must exist"
|
||||
);
|
||||
const packageViewIds = packageJson.contributes.views.clusterflux.map((view) => view.id).sort();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue