MCPcopy
hub / github.com/PowerShell/vscode-powershell / TestLogger

Class TestLogger

test/utils.ts:16–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14export const extensionId = `${publisher}.${name}`;
15
16export class TestLogger implements ILogger {
17 logDirectoryPath: vscode.Uri = vscode.Uri.file("");
18 updateLogLevel(_logLevelName: string): void {
19 return;
20 }
21 write(_message: string, ..._additionalMessages: string[]): void {
22 return;
23 }
24 writeAndShowInformation(
25 _message: string,
26 ..._additionalMessages: string[]
27 ): Promise<void> {
28 return Promise.resolve();
29 }
30 writeTrace(_message: string, ..._additionalMessages: string[]): void {
31 return;
32 }
33 writeDebug(_message: string, ..._additionalMessages: string[]): void {
34 return;
35 }
36 writeWarning(_message: string, ..._additionalMessages: string[]): void {
37 return;
38 }
39 writeAndShowWarning(
40 _message: string,
41 ..._additionalMessages: string[]
42 ): Promise<void> {
43 return Promise.resolve();
44 }
45 writeError(_message: string, ..._additionalMessages: string[]): void {
46 return;
47 }
48 writeAndShowError(
49 _message: string,
50 ..._additionalMessages: string[]
51 ): Promise<void> {
52 return Promise.resolve();
53 }
54 writeAndShowErrorWithActions(
55 _message: string,
56 _actions: {
57 prompt: string;
58 action: (() => Promise<void>) | undefined;
59 }[],
60 ): Promise<void> {
61 return Promise.resolve();
62 }
63}
64
65export const testLogger = new TestLogger();
66

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected