File tree Expand file tree Collapse file tree
src/vs/workbench/parts/tasks/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -524,12 +524,18 @@ interface WorkspaceConfigurationResult {
524524 hasErrors : boolean ;
525525}
526526
527+ interface TaskCustomizationTelementryEvent {
528+ properties : string [ ] ;
529+ }
530+
527531class TaskService extends EventEmitter implements ITaskService {
528532
529533 // private static autoDetectTelemetryName: string = 'taskServer.autoDetect';
530534 private static RecentlyUsedTasks_Key = 'workbench.tasks.recentlyUsedTasks' ;
531535 private static RanTaskBefore_Key = 'workbench.tasks.ranTaskBefore' ;
532536
537+ private static CustomizationTelemetryEventName : string = 'taskService.customize' ;
538+
533539 public _serviceBrand : any ;
534540 public static SERVICE_ID : string = 'taskService' ;
535541 public static OutputChannelId : string = 'tasks' ;
@@ -901,6 +907,10 @@ class TaskService extends EventEmitter implements ITaskService {
901907 promise = this . configurationEditingService . writeConfiguration ( ConfigurationTarget . WORKSPACE , value ) ;
902908 } ;
903909 return promise . then ( ( ) => {
910+ let event : TaskCustomizationTelementryEvent = {
911+ properties : properties ? Object . getOwnPropertyNames ( properties ) : [ ]
912+ } ;
913+ this . telemetryService . publicLog ( TaskService . CustomizationTelemetryEventName , event ) ;
904914 if ( openConfig ) {
905915 let resource = this . contextService . toResource ( '.vscode/tasks.json' ) ; // TODO@Dirk (https://github.com/Microsoft/vscode/issues/29454)
906916 this . editorService . openEditor ( {
You can’t perform that action at this time.
0 commit comments