Skip to content

Commit 42ae88f

Browse files
author
Benjamin Pasero
committed
start crash reporter properly given directory argument (refs microsoft#98122)
1 parent d78d979 commit 42ae88f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/vs/workbench/electron-browser/window.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,16 +432,16 @@ export class NativeWindow extends Disposable {
432432
const companyName = product.crashReporter?.companyName || 'Microsoft';
433433
const productName = product.crashReporter?.productName || product.nameShort;
434434

435-
// With appCenter enabled, crashes will be uploaded
436-
if (product.appCenter) {
437-
this.setupCrashReporter(companyName, productName, product.appCenter, undefined);
438-
}
439-
440435
// With a provided crash reporter directory, crashes
441436
// will be stored only locally in that folder
442-
else if (this.environmentService.crashReporterDirectory) {
437+
if (this.environmentService.crashReporterDirectory) {
443438
this.setupCrashReporter(companyName, productName, undefined, this.environmentService.crashReporterDirectory);
444439
}
440+
441+
// With appCenter enabled, crashes will be uploaded
442+
else if (product.appCenter) {
443+
this.setupCrashReporter(companyName, productName, product.appCenter, undefined);
444+
}
445445
}
446446
}
447447

0 commit comments

Comments
 (0)