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 {
38
38
if ( ! telemetryManager ) {
39
39
throw new Error ( "The telemetry service for vscode-java has not been started yet" ) ;
40
40
}
41
+ const javaSettings = getJavaSettingsForTelemetry ( workspace . getConfiguration ( ) ) ;
42
+
43
+ let properties : any ;
41
44
if ( eventName === STARTUP_EVT ) {
42
45
serverInitializedReceived = true ;
46
+ properties = { ...data , ...javaSettings } ;
47
+ } else {
48
+ properties = { ...data } ;
43
49
}
44
50
45
- const javaSettings = getNonDefaultJavaSettings ( workspace . getConfiguration ( ) ) ;
46
-
47
51
return telemetryManager . send ( {
48
52
name : eventName ,
49
- properties : { ... data , ... javaSettings }
53
+ properties
50
54
} ) ;
51
55
}
52
56
@@ -56,7 +60,7 @@ export namespace Telemetry {
56
60
}
57
61
}
58
62
59
- function getNonDefaultJavaSettings ( config : WorkspaceConfiguration ) {
63
+ function getJavaSettingsForTelemetry ( config : WorkspaceConfiguration ) {
60
64
// settings whose values we can record
61
65
const SETTINGS_BASIC = [
62
66
"java.quickfix.showAt" , "java.symbols.includeSourceMethodDeclarations" ,
You can’t perform that action at this time.
0 commit comments