mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
cli - improve fix for #126399 by unsetting VSCODE_CWD
early
This commit is contained in:
parent
f555564a4b
commit
b2614ce504
|
@ -6,6 +6,14 @@
|
|||
//@ts-check
|
||||
'use strict';
|
||||
|
||||
// Delete `VSCODE_CWD` very early even before
|
||||
// importing bootstrap files. We have seen
|
||||
// reports where `code .` would use the wrong
|
||||
// current working directory due to our variable
|
||||
// somehow escaping to the parent shell
|
||||
// (https://github.com/microsoft/vscode/issues/126399)
|
||||
delete process.env['VSCODE_CWD'];
|
||||
|
||||
const bootstrap = require('./bootstrap');
|
||||
const bootstrapNode = require('./bootstrap-node');
|
||||
const product = require('../product.json');
|
||||
|
|
Loading…
Reference in a new issue