mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Split event into multiple
This commit is contained in:
@@ -164,16 +164,18 @@ export class WorkspaceStats implements IWorkbenchContribution {
|
||||
this.reportProxyStats();
|
||||
|
||||
const diagnosticsChannel = this.sharedProcessService.getChannel('diagnostics');
|
||||
diagnosticsChannel.call('reportWorkspaceStats', this.getWorkspaceInformation());
|
||||
this.getWorkspaceInformation().then(stats => diagnosticsChannel.call('reportWorkspaceStats', stats));
|
||||
}
|
||||
|
||||
private getWorkspaceInformation(): IWorkspaceInformation {
|
||||
private async getWorkspaceInformation(): Promise<IWorkspaceInformation> {
|
||||
const workspace = this.contextService.getWorkspace();
|
||||
const state = this.contextService.getWorkbenchState();
|
||||
const id = this.workspaceStatsService.getTelemetryWorkspaceId(workspace, state);
|
||||
const telemetryId = this.workspaceStatsService.getTelemetryWorkspaceId(workspace, state);
|
||||
const rendererSessionId = (await this.telemetryService.getTelemetryInfo()).sessionId;
|
||||
return {
|
||||
id: workspace.id,
|
||||
telemetryId: id,
|
||||
telemetryId,
|
||||
rendererSessionId,
|
||||
folders: workspace.folders,
|
||||
configuration: workspace.configuration
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user