@@ -13,6 +13,7 @@ import { DefaultSettings } from 'vs/workbench/services/preferences/common/prefer
1313import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
1414import { ActionViewItem } from 'vs/base/browser/ui/actionbar/actionViewItems' ;
1515import { IAction } from 'vs/base/common/actions' ;
16+ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
1617
1718const codeSettingRegex = / ^ < c o d e ( c o d e s e t t i n g ) = " ( [ ^ \s " \: ] + ) (?: : ( [ ^ \s " ] + ) ) ? " > / ;
1819const codeFeatureRegex = / ^ < s p a n ( c o d e f e a t u r e ) = " ( [ ^ \s " \: ] + ) (?: : ( [ ^ \s " ] + ) ) ? " > / ;
@@ -26,7 +27,8 @@ export class SimpleSettingRenderer {
2627 constructor (
2728 @IConfigurationService private readonly _configurationService : IConfigurationService ,
2829 @IContextMenuService private readonly _contextMenuService : IContextMenuService ,
29- @IPreferencesService private readonly _preferencesService : IPreferencesService
30+ @IPreferencesService private readonly _preferencesService : IPreferencesService ,
31+ @ITelemetryService private readonly _telemetryService : ITelemetryService
3032 ) {
3133 this . _defaultSettings = new DefaultSettings ( [ ] , ConfigurationTarget . USER ) ;
3234 }
@@ -291,6 +293,17 @@ export class SimpleSettingRenderer {
291293
292294 async updateSetting ( uri : URI , x : number , y : number ) {
293295 if ( uri . scheme === Schemas . codeSetting ) {
296+ type ReleaseNotesSettingUsedClassification = {
297+ owner : 'alexr00' ;
298+ comment : 'Used to understand if the the action to update settings from the release notes is used.' ;
299+ settingId : { classification : 'SystemMetaData' ; purpose : 'FeatureInsight' ; comment : 'The id of the setting that was clicked on in the release notes' } ;
300+ } ;
301+ type ReleaseNotesSettingUsed = {
302+ settingId : string ;
303+ } ;
304+ this . _telemetryService . publicLog2 < ReleaseNotesSettingUsed , ReleaseNotesSettingUsedClassification > ( 'releaseNotesSettingAction' , {
305+ settingId : uri . authority
306+ } ) ;
294307 return this . showContextMenu ( uri , x , y ) ;
295308 } else if ( uri . scheme === Schemas . codeFeature ) {
296309 return this . setFeatureState ( uri ) ;
0 commit comments