Skip to content

Commit

Permalink
Move initialization of TimeTelemetryCollector (#6984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Feb 17, 2021
1 parent 71a1005 commit 1a26463
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Extension/src/LanguageServer/clientCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ClientCollection {
private defaultClient: cpptools.Client;
private activeClient: cpptools.Client;
private activeDocument?: vscode.TextDocument;
public timeTelemetryCollector: TimeTelemetryCollector;
public timeTelemetryCollector: TimeTelemetryCollector = new TimeTelemetryCollector();

public get ActiveClient(): cpptools.Client { return this.activeClient; }
public get Names(): ClientKey[] {
Expand Down Expand Up @@ -62,8 +62,6 @@ export class ClientCollection {

this.disposables.push(vscode.workspace.onDidChangeWorkspaceFolders(e => this.onDidChangeWorkspaceFolders(e)));
this.disposables.push(vscode.workspace.onDidCloseTextDocument(d => this.onDidCloseTextDocument(d)));

this.timeTelemetryCollector = new TimeTelemetryCollector();
}

public activeDocumentChanged(document: vscode.TextDocument): void {
Expand Down

0 comments on commit 1a26463

Please sign in to comment.