Skip to content

Commit 0aaae1f

Browse files
authored
Support sending telemetry during cpptools initialization (#13077)
1 parent a172a42 commit 0aaae1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ export class DefaultClient implements Client {
16701670
languageClient = new LanguageClient(`cpptools`, serverOptions, clientOptions);
16711671
languageClient.onNotification(DebugProtocolNotification, logDebugProtocol);
16721672
languageClient.onNotification(DebugLogNotification, logLocalized);
1673+
languageClient.onNotification(LogTelemetryNotification, (e) => this.logTelemetry(e));
16731674
languageClient.registerProposedFeatures();
16741675
await languageClient.start();
16751676

@@ -2443,7 +2444,6 @@ export class DefaultClient implements Client {
24432444

24442445
this.languageClient.onNotification(ReloadWindowNotification, () => void util.promptForReloadWindowDueToSettingsChange());
24452446
this.languageClient.onNotification(UpdateTrustedCompilersNotification, (e) => void this.addTrustedCompiler(e.compilerPath));
2446-
this.languageClient.onNotification(LogTelemetryNotification, (e) => this.logTelemetry(e));
24472447
this.languageClient.onNotification(ReportStatusNotification, (e) => void this.updateStatus(e));
24482448
this.languageClient.onNotification(ReportTagParseStatusNotification, (e) => this.updateTagParseStatus(e));
24492449
this.languageClient.onNotification(CompileCommandsPathsNotification, (e) => void this.promptCompileCommands(e));

0 commit comments

Comments
 (0)