Skip to content

Commit

Permalink
report new windo profile setting (#213531)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 27, 2024
1 parent d309e11 commit 09e9d30
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { isBoolean, isNumber, isString } from 'vs/base/common/types';
import { LayoutSettings } from 'vs/workbench/services/layout/browser/layoutService';
import { AutoUpdateConfigurationKey } from 'vs/workbench/contrib/extensions/common/extensions';
import { KEYWORD_ACTIVIATION_SETTING_ID } from 'vs/workbench/contrib/chat/common/chatService';
import { IUserDataProfilesService } from 'vs/platform/userDataProfile/common/userDataProfile';

type TelemetryData = {
mimeType: TelemetryTrustedValue<string>;
Expand Down Expand Up @@ -240,6 +241,7 @@ class ConfigurationTelemetryContribution extends Disposable implements IWorkbenc

constructor(
@IConfigurationService private readonly configurationService: IConfigurationService,
@IUserDataProfilesService private readonly userDataProfilesService: IUserDataProfilesService,
@ITelemetryService private readonly telemetryService: ITelemetryService,
) {
super();
Expand Down Expand Up @@ -419,6 +421,23 @@ class ConfigurationTelemetryContribution extends Disposable implements IWorkbenc
source: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'source of the setting' };
}>('window.systemColorTheme', { settingValue: this.getValueToReport(key, target), source });
return;

case 'window.newWindowProfile':
{
const valueToReport = this.getValueToReport(key, target);
const settingValue =
valueToReport === null ? 'null'
: valueToReport === this.userDataProfilesService.defaultProfile.name
? 'default'
: 'custom';
this.telemetryService.publicLog2<UpdatedSettingEvent, {
owner: 'bpasero';
comment: 'This is used to know the new window profile that is being used';
settingValue: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'if the profile is default or not' };
source: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'source of the setting' };
}>('window.systemColorTheme', { settingValue, source });
return;
}
}
}

Expand Down

0 comments on commit 09e9d30

Please sign in to comment.