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