提交 1e54bb2b 编写于 作者: R Ramya Achutha Rao

Fixes #27452 Set version, commit in extra bag from the start

上级 a1fd514f
......@@ -35,23 +35,23 @@ export class CrashReporterService implements ICrashReporterService {
private startCrashReporter(): void {
// base options
// base options with product info
this.options = {
companyName: product.crashReporter.companyName,
productName: product.crashReporter.productName,
submitURL: this.getSubmitURL()
submitURL: this.getSubmitURL(),
extra: {
vscode_version: pkg.version,
vscode_commit: product.commit
}
};
// mixin telemetry info and product info
// mixin telemetry info
this.telemetryService.getTelemetryInfo()
.then(info => {
assign(this.options, {
extra: {
vscode_sessionId: info.sessionId,
vscode_version: pkg.version,
vscode_commit: product.commit,
vscode_machineId: info.machineId
}
assign(this.options.extra, {
vscode_sessionId: info.sessionId,
vscode_machineId: info.machineId
});
// start crash reporter right here
......@@ -81,12 +81,7 @@ export class CrashReporterService implements ICrashReporterService {
// Experimental attempt on Mac only for now
if (isMacintosh) {
const childProcessOptions = clone(this.options);
if (childProcessOptions.extra) {
childProcessOptions.extra.processName = name;
} else {
childProcessOptions.extra = { processName: name };
}
childProcessOptions.extra.processName = name;
childProcessOptions.crashesDirectory = os.tmpdir();
return childProcessOptions;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册