fix: enable detached children for Linux in dev scripts (#1483)
This commit is contained in:
@@ -9,7 +9,7 @@ const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const repoRoot = path.resolve(__dirname, '..');
|
||||
const extensionPath = path.join(repoRoot, 'packages', 'vscode');
|
||||
const useDetachedChildren = process.platform === 'darwin';
|
||||
const useDetachedChildren = process.platform === 'darwin' || process.platform === 'linux';
|
||||
|
||||
const codeBin = process.env.OPENCHAMBER_VSCODE_BIN || 'code';
|
||||
const workspaceArg = process.argv[2] || process.env.OPENCHAMBER_VSCODE_DEV_WORKSPACE || repoRoot;
|
||||
|
||||
@@ -6,7 +6,7 @@ import { fileURLToPath } from 'node:url';
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const repoRoot = path.resolve(__dirname, '..');
|
||||
const useDetachedChildren = process.platform === 'darwin';
|
||||
const useDetachedChildren = process.platform === 'darwin' || process.platform === 'linux';
|
||||
|
||||
function run(label, command, args, options = {}) {
|
||||
const child = spawn(command, args, {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url';
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const repoRoot = path.resolve(__dirname, '..');
|
||||
const useDetachedChildren = process.platform === 'darwin';
|
||||
const useDetachedChildren = process.platform === 'darwin' || process.platform === 'linux';
|
||||
const webRoot = path.join(repoRoot, 'packages/web');
|
||||
|
||||
const quoteWindowsCommandArg = (value) => `"${String(value).replace(/"/g, '""')}"`;
|
||||
|
||||
Reference in New Issue
Block a user