docs: record v1 RC tooling compatibility
This commit is contained in:
@@ -8,8 +8,14 @@ const {downloadAndUnzipVSCode, runTests} = require('@vscode/test-electron');
|
||||
(async () => {
|
||||
const extensionDevelopmentPath = path.resolve(__dirname, '..', '..');
|
||||
const sourceWorkspace = path.join(extensionDevelopmentPath, 'test', 'workspace');
|
||||
const temporary = fs.mkdtempSync(path.join(os.tmpdir(), 'himesan-vscode-integration-'));
|
||||
// macOS exposes its temporary tree through /var, which is a symlink to
|
||||
// /private/var. Hime-san intentionally rejects user-supplied workspace roots
|
||||
// reached through symlinks, so make this test-owned path physical before it
|
||||
// crosses the LSP boundary.
|
||||
const temporaryRoot = process.platform === 'darwin' ? '/private/tmp' : fs.realpathSync(os.tmpdir());
|
||||
const temporary = fs.realpathSync(fs.mkdtempSync(path.join(temporaryRoot, 'himesan-vscode-integration-')));
|
||||
const workspace = path.join(temporary, 'project [safe]');
|
||||
const userData = path.join(temporary, 'user-data');
|
||||
fs.cpSync(sourceWorkspace, workspace, {recursive: true});
|
||||
try {
|
||||
const vscodeExecutablePath = await downloadAndUnzipVSCode('1.96.4');
|
||||
@@ -17,7 +23,7 @@ const {downloadAndUnzipVSCode, runTests} = require('@vscode/test-electron');
|
||||
vscodeExecutablePath,
|
||||
extensionDevelopmentPath,
|
||||
extensionTestsPath: path.join(__dirname, 'suite', 'index.js'),
|
||||
launchArgs: [workspace, '--disable-extensions', '--disable-gpu', '--skip-welcome', '--skip-release-notes'],
|
||||
launchArgs: [workspace, `--user-data-dir=${userData}`, '--disable-extensions', '--disable-gpu', '--skip-welcome', '--skip-release-notes'],
|
||||
extensionTestsEnv: {HIMESAN_TEST_BINARY: process.env.HIMESAN_TEST_BINARY || ''},
|
||||
});
|
||||
} finally {
|
||||
|
||||
@@ -7,7 +7,7 @@ const vscode = require('vscode');
|
||||
|
||||
async function run() {
|
||||
const binary = process.env.HIMESAN_TEST_BINARY;
|
||||
assert.ok(binary && path.isAbsolute(binary), 'HIMESAN_TEST_BINARY must be an absolute Beta 2 candidate path');
|
||||
assert.ok(binary && path.isAbsolute(binary), 'HIMESAN_TEST_BINARY must be an absolute compatible compiler path');
|
||||
const folder = vscode.workspace.workspaceFolders?.[0];
|
||||
assert.ok(folder, 'integration workspace missing');
|
||||
await vscode.workspace.getConfiguration('sandwichHime', folder.uri).update('himesanPath', binary, vscode.ConfigurationTarget.WorkspaceFolder);
|
||||
|
||||
Reference in New Issue
Block a user