mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 21:28:04 +00:00
fix: insiders cli launch from wsl terminal (#279444)
* fix: insiders cli launch from wsl terminal * chore: also update server cli * chore: address review feedback
This commit is contained in:
@@ -279,7 +279,12 @@ export async function main(desc: ProductDescription, args: string[]): Promise<vo
|
||||
} else {
|
||||
const cliCwd = dirname(cliCommand);
|
||||
const env = { ...process.env, ELECTRON_RUN_AS_NODE: '1' };
|
||||
newCommandline.unshift('resources/app/out/cli.js');
|
||||
const versionFolder = desc.commit.substring(0, 10);
|
||||
if (fs.existsSync(join(cliCwd, versionFolder))) {
|
||||
newCommandline.unshift(`${versionFolder}/resources/app/out/cli.js`);
|
||||
} else {
|
||||
newCommandline.unshift('resources/app/out/cli.js');
|
||||
}
|
||||
if (verbose) {
|
||||
console.log(`Invoking: cd "${cliCwd}" && ELECTRON_RUN_AS_NODE=1 "${cliCommand}" "${newCommandline.join('" "')}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user