Skip to content

Commit

Permalink
Fix missing copyright + missing instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 committed Sep 23, 2021
1 parent 6e8e202 commit 0f201c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/baseTelemetryReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export class BaseTelemtryReporter {
const telemetryLevel = getTelemetryLevel();
this.userOptIn = telemetryLevel === TelemetryLevel.ON;
this.errorOptIn = telemetryLevel === TelemetryLevel.ERROR || telemetryLevel === TelemetryLevel.ON;
if (this.userOptIn || this.errorOptIn) {
this.telemetryAppender.instantiateAppender();
}
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/common/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import * as vscode from "vscode";

export const enum TelemetryLevel {
Expand Down

0 comments on commit 0f201c2

Please sign in to comment.