@@ -23,7 +23,7 @@ if (process.env['VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH']) {
2323}
2424
2525// Configure: pipe logging to parent process
26- if ( ! ! process . send && process . env . PIPE_LOGGING === 'true' ) {
26+ if ( ! ! process . send && process . env [ 'VSCODE_PIPE_LOGGING' ] === 'true' ) {
2727 pipeLoggingToParent ( ) ;
2828}
2929
@@ -41,7 +41,7 @@ if (process.env['VSCODE_PARENT_PID']) {
4141configureCrashReporter ( ) ;
4242
4343// Load AMD entry point
44- require ( './bootstrap-amd' ) . load ( process . env [ 'AMD_ENTRYPOINT ' ] ) ;
44+ require ( './bootstrap-amd' ) . load ( process . env [ 'VSCODE_AMD_ENTRYPOINT ' ] ) ;
4545
4646
4747//#region Helpers
@@ -82,7 +82,7 @@ function pipeLoggingToParent() {
8282
8383 // Add the stack trace as payload if we are told so. We remove the message and the 2 top frames
8484 // to start the stacktrace where the console message was being written
85- if ( process . env . VSCODE_LOG_STACK === 'true' ) {
85+ if ( process . env [ ' VSCODE_LOG_STACK' ] === 'true' ) {
8686 const stack = new Error ( ) . stack ;
8787 if ( stack ) {
8888 argsArray . push ( { __$stack : stack . split ( '\n' ) . slice ( 3 ) . join ( '\n' ) } ) ;
@@ -152,7 +152,7 @@ function pipeLoggingToParent() {
152152 * @param {'log' | 'warn' | 'error' } severity
153153 */
154154 function wrapConsoleMethod ( method , severity ) {
155- if ( process . env . VSCODE_LOG_NATIVE === 'true' ) {
155+ if ( process . env [ ' VSCODE_LOG_NATIVE' ] === 'true' ) {
156156 const original = console [ method ] ;
157157 console [ method ] = function ( ) {
158158 safeSendConsoleMessage ( severity , safeToArray ( arguments ) ) ;
@@ -168,12 +168,12 @@ function pipeLoggingToParent() {
168168 }
169169
170170 // Pass console logging to the outside so that we have it in the main side if told so
171- if ( process . env . VERBOSE_LOGGING === 'true' ) {
171+ if ( process . env [ 'VSCODE_VERBOSE_LOGGING' ] === 'true' ) {
172172 wrapConsoleMethod ( 'info' , 'log' ) ;
173173 wrapConsoleMethod ( 'log' , 'log' ) ;
174174 wrapConsoleMethod ( 'warn' , 'warn' ) ;
175175 wrapConsoleMethod ( 'error' , 'error' ) ;
176- } else if ( process . env . VSCODE_LOG_NATIVE !== 'true' ) {
176+ } else if ( process . env [ ' VSCODE_LOG_NATIVE' ] !== 'true' ) {
177177 console . log = function ( ) { /* ignore */ } ;
178178 console . warn = function ( ) { /* ignore */ } ;
179179 console . info = function ( ) { /* ignore */ } ;
@@ -209,7 +209,7 @@ function terminateWhenParentTerminates() {
209209}
210210
211211function configureCrashReporter ( ) {
212- const crashReporterOptionsRaw = process . env [ 'CRASH_REPORTER_START_OPTIONS ' ] ;
212+ const crashReporterOptionsRaw = process . env [ 'VSCODE_CRASH_REPORTER_START_OPTIONS ' ] ;
213213 if ( typeof crashReporterOptionsRaw === 'string' ) {
214214 try {
215215 const crashReporterOptions = JSON . parse ( crashReporterOptionsRaw ) ;
0 commit comments