Skip to content

Commit 3c556e2

Browse files
committed
Address review comments
Signed-off-by: Thomas Mäder <[email protected]>
1 parent c8298b0 commit 3c556e2

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

src/standardLanguageClient.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,12 @@ export class StandardLanguageClient {
343343
"java.completion.collapseCompletionItems", "java.completion.guessMethodArguments",
344344
"java.cleanup.actionsOnSave", "java.completion.postfix.enabled",
345345
"java.sharedIndexes.enabled", "java.inlayHints.parameterNames.enabled",
346+
"java.inlayHints.parameterNames.suppressWhenSameNameNumbered",
347+
"java.inlayHints.variableTypes.enabled",
348+
"java.inlayHints.parameterTypes.enabled",
346349
"java.server.launchMode", "java.autobuild.enabled"
347350
];
351+
348352
// settings where we only record their existence
349353
const SETTINGS_CUSTOM = [
350354
"java.settings.url", "java.format.settings.url"
@@ -374,7 +378,7 @@ export class StandardLanguageClient {
374378
const javaSettings = getJavaSettingsForTelemetry(workspace.getConfiguration());
375379

376380
const properties= { ...e.properties, ...javaSettings };
377-
await Telemetry.sendTelemetry(Telemetry.STARTUP_EVT, );
381+
await Telemetry.sendTelemetry(Telemetry.STARTUP_EVT, properties);
378382
} else if (e.name === Telemetry.LS_ERROR) {
379383
const tags = [];
380384
const exception: string = e?.properties.exception;

src/telemetry.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)