@@ -6,10 +6,10 @@ import * as _ from "lodash";
6
6
import * as path from "path" ;
7
7
import * as vscode from "vscode" ;
8
8
import { dispose as disposeTelemetryWrapper , initializeFromJsonFile , instrumentOperation ,
9
- instrumentOperationAsVsCodeCommand , setUserError } from "vscode-extension-telemetry-wrapper" ;
9
+ instrumentOperationAsVsCodeCommand , sendInfo , setUserError } from "vscode-extension-telemetry-wrapper" ;
10
10
import * as commands from "./commands" ;
11
11
import { 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" ;
13
13
import { NotificationBar } from "./customWidget" ;
14
14
import { initializeCodeLensProvider , startDebugging } from "./debugCodeLensProvider" ;
15
15
import { initExpService } from "./experimentationService" ;
@@ -120,7 +120,12 @@ function registerDebugEventListener(context: vscode.ExtensionContext) {
120
120
if ( t !== JAVA_LANGID ) {
121
121
return ;
122
122
}
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 ) {
124
129
handleHotCodeReplaceCustomEvent ( customEvent ) ;
125
130
} else if ( customEvent . event === USER_NOTIFICATION_EVENT ) {
126
131
handleUserNotification ( customEvent ) ;
0 commit comments