Skip to content

Commit c7eefca

Browse files
committed
Remove context on web
1 parent 4f4022c commit c7eefca

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-extension-telemetry",
33
"description": "A module for first party microsoft extensions to report consistent telemetry.",
4-
"version": "0.2.7",
4+
"version": "0.2.8",
55
"author": {
66
"name": "Microsoft Corporation"
77
},

src/browser/telemetryReporter.ts

-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (C) Microsoft Corporation. All rights reserved.
33
*--------------------------------------------------------*/
44

5-
import * as vscode from "vscode";
65
import { ApplicationInsights } from "@microsoft/applicationinsights-web";
76
import { AppenderData, BaseTelemtryReporter, ITelemetryAppender } from "../common/baseTelemetryReporter";
87

@@ -31,11 +30,6 @@ class WebAppInsightsAppender implements ITelemetryAppender {
3130
});
3231
this._aiClient.loadAppInsights();
3332

34-
if (vscode && vscode.env) {
35-
this._aiClient.context.user.id = vscode.env.machineId;
36-
this._aiClient.context.session.id = vscode.env.sessionId;
37-
}
38-
3933
// If we cannot access the endpoint this most likely means it's being blocked
4034
// and we should not attempt to send any telemetry.
4135
if (endpointUrl) {

0 commit comments

Comments
 (0)