Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Pasero <benjamin.pasero@microsoft.com>2021-03-29 15:20:37 +0300
committerBenjamin Pasero <benjamin.pasero@microsoft.com>2021-03-29 15:20:45 +0300
commit3a2a24e452c5e79781e71cda0c7eb1153899f041 (patch)
tree3c32a6b19bf440a5c01ca89ea11d0a9741055e1d /src/cli.js
parent456651f286857abe79025c3eaefb7ae6f9786d68 (diff)
cli - set VSCODE_CLI earlier (#119660)
Diffstat (limited to 'src/cli.js')
-rw-r--r--src/cli.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.js b/src/cli.js
index 5624cb93bb5..9e70249ec04 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -19,5 +19,8 @@ bootstrapNode.configurePortable(product);
// Enable ASAR support
bootstrap.enableASARSupport(undefined);
+// Signal processes that we got launched as CLI
+process.env['VSCODE_CLI'] = '1';
+
// Load CLI through AMD loader
require('./bootstrap-amd').load('vs/code/node/cli');