Skip to content

Commit 2c3dcd4

Browse files
committed
add instrumentation support to the typescript code
1 parent 05fbc0e commit 2c3dcd4

File tree

11 files changed

+9440
-9372
lines changed

11 files changed

+9440
-9372
lines changed

Extension/src/Debugger/configurationProvider.ts

Lines changed: 1278 additions & 1278 deletions
Large diffs are not rendered by default.

Extension/src/LanguageServer/client.ts

Lines changed: 4128 additions & 4133 deletions
Large diffs are not rendered by default.

Extension/src/LanguageServer/extension.ts

Lines changed: 1387 additions & 1389 deletions
Large diffs are not rendered by default.

Extension/src/LanguageServer/lmTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import * as vscode from 'vscode';
88
import { localize } from 'vscode-nls';
99
import * as util from '../common';
10-
import * as logger from '../logger';
10+
import { getOutputChannelLogger } from '../logger';
1111
import * as telemetry from '../telemetry';
1212
import { ChatContextResult } from './client';
1313
import { getClients } from './extension';
@@ -106,7 +106,7 @@ export class CppConfigurationLanguageModelTool implements vscode.LanguageModelTo
106106

107107
private async reportError(): Promise<void> {
108108
try {
109-
logger.getOutputChannelLogger().appendLine(localize("copilot.cppcontext.error", "Error while retrieving the #cpp context."));
109+
getOutputChannelLogger().appendLine(localize("copilot.cppcontext.error", "Error while retrieving the #cpp context."));
110110
}
111111
catch {
112112
// Intentionally swallow any exception.

Extension/src/LanguageServer/references.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as vscode from 'vscode';
88
import { Position, TextDocumentIdentifier } from 'vscode-languageclient';
99
import * as nls from 'vscode-nls';
1010
import * as util from '../common';
11-
import * as logger from '../logger';
11+
import { getOutputChannel } from '../logger';
1212
import * as telemetry from '../telemetry';
1313
import { DefaultClient } from './client';
1414
import { PersistentState } from './persistentState';
@@ -478,7 +478,7 @@ export class ReferencesManager {
478478
this.referencesChannel.show(true);
479479
}
480480
} else if (this.client.ReferencesCommandMode === ReferencesCommandMode.Find) {
481-
const logChannel: vscode.OutputChannel = logger.getOutputChannel();
481+
const logChannel: vscode.OutputChannel = getOutputChannel();
482482
logChannel.appendLine(msg);
483483
logChannel.appendLine("");
484484
logChannel.show(true);

0 commit comments

Comments
 (0)