mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-22 16:19:52 +01:00
fix: restore VSCODE_CWD fix when resolving current working directory (#221373)
This commit is contained in:
+7
-7
@@ -6,6 +6,13 @@
|
||||
//@ts-check
|
||||
'use strict';
|
||||
|
||||
// Delete `VSCODE_CWD` very early. 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'];
|
||||
|
||||
// ESM-comment-begin
|
||||
const bootstrap = require('./bootstrap');
|
||||
const bootstrapNode = require('./bootstrap-node');
|
||||
@@ -25,13 +32,6 @@ const product = require('./bootstrap-meta').product;
|
||||
// const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
// ESM-uncomment-end
|
||||
|
||||
// Delete `VSCODE_CWD` very early. 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'];
|
||||
|
||||
async function start() {
|
||||
|
||||
// NLS
|
||||
|
||||
Reference in New Issue
Block a user