File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,19 @@ export namespace Telemetry {
3838 if ( ! telemetryManager ) {
3939 throw new Error ( "The telemetry service for vscode-java has not been started yet" ) ;
4040 }
41+ const javaSettings = getJavaSettingsForTelemetry ( workspace . getConfiguration ( ) ) ;
42+
43+ let properties : any ;
4144 if ( eventName === STARTUP_EVT ) {
4245 serverInitializedReceived = true ;
46+ properties = { ...data , ...javaSettings } ;
47+ } else {
48+ properties = { ...data } ;
4349 }
4450
45- const javaSettings = getNonDefaultJavaSettings ( workspace . getConfiguration ( ) ) ;
46-
4751 return telemetryManager . send ( {
4852 name : eventName ,
49- properties : { ... data , ... javaSettings }
53+ properties
5054 } ) ;
5155 }
5256
@@ -56,7 +60,7 @@ export namespace Telemetry {
5660 }
5761 }
5862
59- function getNonDefaultJavaSettings ( config : WorkspaceConfiguration ) {
63+ function getJavaSettingsForTelemetry ( config : WorkspaceConfiguration ) {
6064 // settings whose values we can record
6165 const SETTINGS_BASIC = [
6266 "java.quickfix.showAt" , "java.symbols.includeSourceMethodDeclarations" ,
You can’t perform that action at this time.
0 commit comments