Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions USAGE_DATA.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ vscode-java has opt-in telemetry collection, provided by [vscode-redhat-telemetr
* The total size (in bytes) of libraries that were indexed after project initialization
* Information about the following settings. In the case of settings that store a well defined value (eg. path/url/string), we simply collect whether the setting has been set.
* `java.settings.url`, `java.format.settings.url`, `java.quickfix.showAt`, `java.symbols.includeSourceMethodDeclarations`, `java.completion.guessMethodArguments`, `java.completion.postfix.enabled`, `java.cleanup.actionsOnSave`, `java.sharedIndexes.enabled`, `java.inlayHints.parameterNames.enabled`, `java.server.launchMode`, `java.autobuild.enabled`
* The extension name and the choice made when a recommendation to install a 3rd party extension is proposed

## What's included in the general telemetry data

Expand Down
5 changes: 5 additions & 0 deletions src/recommendation/handlerImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import * as vscode from "vscode";
import { IHandler } from "./handler";
import { Telemetry } from "../telemetry";

const KEY_RECOMMENDATION_USER_CHOICE_MAP = "recommendationUserChoice";

Expand Down Expand Up @@ -54,6 +55,10 @@ export class HandlerImpl implements IHandler {

const actions: Array<string> = Object.values(UserChoice);
const answer = await vscode.window.showInformationMessage(message, ...actions);
await Telemetry.sendTelemetry('recommendation', {
recommendation: extName,
choice:answer?.toLowerCase()
});
if (answer === UserChoice.install) {
await installExtensionCmdHandler(extName, extName);
}
Expand Down