@@ -6,10 +6,10 @@ import * as _ from "lodash";
66import * as path from "path" ;
77import * as vscode from "vscode" ;
88import { dispose as disposeTelemetryWrapper , initializeFromJsonFile , instrumentOperation ,
9- instrumentOperationAsVsCodeCommand , setUserError } from "vscode-extension-telemetry-wrapper" ;
9+ instrumentOperationAsVsCodeCommand , sendInfo , setUserError } from "vscode-extension-telemetry-wrapper" ;
1010import * as commands from "./commands" ;
1111import { JavaDebugConfigurationProvider , lastUsedLaunchConfig } from "./configurationProvider" ;
12- import { HCR_EVENT , JAVA_LANGID , USER_NOTIFICATION_EVENT } from "./constants" ;
12+ import { HCR_EVENT , JAVA_LANGID , TELEMETRY_EVENT , USER_NOTIFICATION_EVENT } from "./constants" ;
1313import { NotificationBar } from "./customWidget" ;
1414import { initializeCodeLensProvider , startDebugging } from "./debugCodeLensProvider" ;
1515import { initExpService } from "./experimentationService" ;
@@ -120,7 +120,12 @@ function registerDebugEventListener(context: vscode.ExtensionContext) {
120120 if ( t !== JAVA_LANGID ) {
121121 return ;
122122 }
123- if ( customEvent . event === HCR_EVENT ) {
123+ if ( customEvent . event === TELEMETRY_EVENT ) {
124+ sendInfo ( "" , {
125+ operationName : customEvent . body ?. name ,
126+ ...customEvent . body ?. properties ,
127+ } ) ;
128+ } else if ( customEvent . event === HCR_EVENT ) {
124129 handleHotCodeReplaceCustomEvent ( customEvent ) ;
125130 } else if ( customEvent . event === USER_NOTIFICATION_EVENT ) {
126131 handleUserNotification ( customEvent ) ;
0 commit comments