From 150138e04b8800a64b9df8f484cf09ae7e6f1c59 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 2 Mar 2021 15:59:47 -0600 Subject: [PATCH] Update env vars for extension host They now are all prepended with VSCODE_. Also added the parent pid to ensure it shuts down when the parent dies. --- lib/vscode/src/vs/server/node/connection.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/vscode/src/vs/server/node/connection.ts b/lib/vscode/src/vs/server/node/connection.ts index b584a34c..51ca4d09 100644 --- a/lib/vscode/src/vs/server/node/connection.ts +++ b/lib/vscode/src/vs/server/node/connection.ts @@ -136,14 +136,15 @@ export class ExtensionHostConnection extends Connection { { env: { ...process.env, - AMD_ENTRYPOINT: 'vs/workbench/services/extensions/node/extensionHostProcess', - PIPE_LOGGING: 'true', - VERBOSE_LOGGING: 'true', + VSCODE_AMD_ENTRYPOINT: 'vs/workbench/services/extensions/node/extensionHostProcess', + VSCODE_PIPE_LOGGING: 'true', + VSCODE_VERBOSE_LOGGING: 'true', VSCODE_EXTHOST_WILL_SEND_SOCKET: 'true', VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true', VSCODE_LOG_STACK: 'false', VSCODE_LOG_LEVEL: process.env.LOG_LEVEL, VSCODE_NLS_CONFIG: JSON.stringify(config), + VSCODE_PARENT_PID: String(process.pid), }, silent: true, },