File tree Expand file tree Collapse file tree
src/vs/workbench/services/extensions/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import * as nls from 'vs/nls' ;
77import { ChildProcess , fork } from 'child_process' ;
88import { Server , Socket , createServer } from 'net' ;
9+ import { CrashReporterStartOptions } from 'electron' ;
910import { getPathFromAmdModule } from 'vs/base/common/amd' ;
1011import { timeout } from 'vs/base/common/async' ;
1112import { toErrorMessage } from 'vs/base/common/errorMessage' ;
@@ -170,8 +171,17 @@ export class ExtensionHostProcessWorker implements IExtensionHostStarter {
170171 opts . execArgv = [ '--inspect-port=0' ] ;
171172 }
172173
173- const crashReporterOptions = undefined ; // TODO@electron pass this in as options to the extension host after verifying this actually works
174- if ( crashReporterOptions ) {
174+ // Enable the crash reporter depending on environment for local reporting
175+ const crashesDirectory = this . _environmentService . crashReporterDirectory ;
176+ if ( crashesDirectory ) {
177+ const crashReporterOptions : CrashReporterStartOptions = {
178+ companyName : product . crashReporter ?. companyName || 'Microsoft' ,
179+ productName : product . crashReporter ?. productName || product . nameShort ,
180+ submitURL : '' ,
181+ uploadToServer : false ,
182+ crashesDirectory
183+ } ;
184+
175185 opts . env . CRASH_REPORTER_START_OPTIONS = JSON . stringify ( crashReporterOptions ) ;
176186 }
177187
You can’t perform that action at this time.
0 commit comments