@@ -13,6 +13,7 @@ import { DefaultSettings } from 'vs/workbench/services/preferences/common/prefer
13
13
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView' ;
14
14
import { ActionViewItem } from 'vs/base/browser/ui/actionbar/actionViewItems' ;
15
15
import { IAction } from 'vs/base/common/actions' ;
16
+ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
16
17
17
18
const codeSettingRegex = / ^ < c o d e ( c o d e s e t t i n g ) = " ( [ ^ \s " \: ] + ) (?: : ( [ ^ \s " ] + ) ) ? " > / ;
18
19
const 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 {
26
27
constructor (
27
28
@IConfigurationService private readonly _configurationService : IConfigurationService ,
28
29
@IContextMenuService private readonly _contextMenuService : IContextMenuService ,
29
- @IPreferencesService private readonly _preferencesService : IPreferencesService
30
+ @IPreferencesService private readonly _preferencesService : IPreferencesService ,
31
+ @ITelemetryService private readonly _telemetryService : ITelemetryService
30
32
) {
31
33
this . _defaultSettings = new DefaultSettings ( [ ] , ConfigurationTarget . USER ) ;
32
34
}
@@ -291,6 +293,17 @@ export class SimpleSettingRenderer {
291
293
292
294
async updateSetting ( uri : URI , x : number , y : number ) {
293
295
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
+ } ) ;
294
307
return this . showContextMenu ( uri , x , y ) ;
295
308
} else if ( uri . scheme === Schemas . codeFeature ) {
296
309
return this . setFeatureState ( uri ) ;
0 commit comments