docs: record v1 RC tooling compatibility

This commit is contained in:
2026-08-24 15:33:34 -04:00
parent 6df87bc958
commit 74b6213e65
7 changed files with 25 additions and 15 deletions
+8 -2
View File
@@ -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 {