@@ -55,40 +55,4 @@ export namespace Telemetry {
5555 } ;
5656 return telemetryManager . send ( event ) ;
5757 }
58-
59- function getJavaSettingsForTelemetry ( config : WorkspaceConfiguration ) {
60- // settings whose values we can record
61- const SETTINGS_BASIC = [
62- "java.quickfix.showAt" , "java.symbols.includeSourceMethodDeclarations" ,
63- "java.completion.collapseCompletionItems" , "java.completion.guessMethodArguments" ,
64- "java.cleanup.actionsOnSave" , "java.completion.postfix.enabled" ,
65- "java.sharedIndexes.enabled" , "java.inlayHints.parameterNames.enabled" ,
66- "java.inlayHints.parameterNames.suppressWhenSameNameNumbered" ,
67- "java.inlayHints.variableTypes.enabled" ,
68- "java.inlayHints.parameterTypes.enabled" ,
69- "java.server.launchMode" , "java.autobuild.enabled"
70- ] ;
71-
72- // settings where we only record their existence
73- const SETTINGS_CUSTOM = [
74- "java.settings.url" , "java.format.settings.url"
75- ] ;
76-
77- let value : any ;
78- const properties = { } ;
79-
80- for ( const key of SETTINGS_CUSTOM ) {
81- if ( config . get ( key ) ) {
82- properties [ key ] = true ;
83- }
84- }
85- for ( const key of SETTINGS_BASIC ) {
86- value = config . get ( key ) ;
87- if ( value !== undefined ) {
88- properties [ key ] = value ;
89- }
90- }
91-
92- return properties ;
93- }
9458}
0 commit comments