shared process - also log if window visible
This commit is contained in:
parent
5245290dc5
commit
90484dda2b
2 changed files with 11 additions and 1 deletions
|
@ -954,12 +954,18 @@ export class CodeApplication extends Disposable {
|
|||
type SharedProcessErrorClassification = {
|
||||
type: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth', isMeasurement: true };
|
||||
reason: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth', isMeasurement: true };
|
||||
visible: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth', isMeasurement: true };
|
||||
};
|
||||
type SharedProcessErrorEvent = {
|
||||
type: WindowError;
|
||||
reason: string | undefined;
|
||||
visible: boolean;
|
||||
};
|
||||
telemetryService.publicLog2<SharedProcessErrorEvent, SharedProcessErrorClassification>('sharedprocesserror', { type, reason: typeof details !== 'string' ? details?.reason : undefined });
|
||||
telemetryService.publicLog2<SharedProcessErrorEvent, SharedProcessErrorClassification>('sharedprocesserror', {
|
||||
type,
|
||||
reason: typeof details !== 'string' ? details?.reason : undefined,
|
||||
visible: sharedProcess.isVisible()
|
||||
});
|
||||
}));
|
||||
|
||||
// Windows: install mutex
|
||||
|
|
|
@ -251,4 +251,8 @@ export class SharedProcess extends Disposable implements ISharedProcess {
|
|||
this.window.webContents.openDevTools();
|
||||
}
|
||||
}
|
||||
|
||||
isVisible(): boolean {
|
||||
return this.window?.isVisible() ?? false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue