Skip to content

Commit

Permalink
Merge pull request #2114 from github/robertbrignull/enable_telemetry
Browse files Browse the repository at this point in the history
Enable new telemetry by default
  • Loading branch information
robertbrignull authored Feb 27, 2023
2 parents 4fa530d + b1ddf89 commit 56e8d8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extensions/ql-vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [UNRELEASED]

## [UNRELEASED]
- Enable collection of telemetry concerning interactions with UI elements, including buttons, links, and other inputs. [#2114](https://github.com/github/vscode-codeql/pull/2114)

# 1.7.10 - 23 February 2023

Expand Down
7 changes: 1 addition & 6 deletions extensions/ql-vscode/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,8 @@ export const GLOBAL_ENABLE_TELEMETRY = new Setting(
GLOBAL_TELEMETRY_SETTING,
);

const ENABLE_NEW_TELEMETRY = new Setting(
"enableNewTelemetry",
TELEMETRY_SETTING,
);

export function newTelemetryEnabled(): boolean {
return ENABLE_NEW_TELEMETRY.getValue<boolean>();
return true;
}

// Distribution configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ describe("telemetry reporting", () => {
});

describe("when new telementry is not enabled", () => {
beforeEach(async () => {
jest.spyOn(Config, "newTelemetryEnabled").mockReturnValue(false);
});

it("should not send a ui-interaction telementry event", async () => {
await telemetryListener.initialize();

Expand Down

0 comments on commit 56e8d8a

Please sign in to comment.