Skip to content

Commit 150138e

Browse files
committed
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.
1 parent ba4448e commit 150138e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/vscode/src/vs/server/node/connection.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,15 @@ export class ExtensionHostConnection extends Connection {
136136
{
137137
env: {
138138
...process.env,
139-
AMD_ENTRYPOINT: 'vs/workbench/services/extensions/node/extensionHostProcess',
140-
PIPE_LOGGING: 'true',
141-
VERBOSE_LOGGING: 'true',
139+
VSCODE_AMD_ENTRYPOINT: 'vs/workbench/services/extensions/node/extensionHostProcess',
140+
VSCODE_PIPE_LOGGING: 'true',
141+
VSCODE_VERBOSE_LOGGING: 'true',
142142
VSCODE_EXTHOST_WILL_SEND_SOCKET: 'true',
143143
VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
144144
VSCODE_LOG_STACK: 'false',
145145
VSCODE_LOG_LEVEL: process.env.LOG_LEVEL,
146146
VSCODE_NLS_CONFIG: JSON.stringify(config),
147+
VSCODE_PARENT_PID: String(process.pid),
147148
},
148149
silent: true,
149150
},

0 commit comments

Comments
 (0)