diff --git a/packages/core/src/shared/logger/logger.ts b/packages/core/src/shared/logger/logger.ts index 9d7d18458b6..bfead668bc9 100644 --- a/packages/core/src/shared/logger/logger.ts +++ b/packages/core/src/shared/logger/logger.ts @@ -248,7 +248,7 @@ export class TopicLogger extends BaseLogger implements vscode.Disposable { if (typeof message === 'string') { message = prependTopic(this.topic, message) as string } - return this.logger.sendToLog(level, message, meta) + return this.logger.sendToLog(level, message, ...meta) } public async dispose(): Promise {} diff --git a/packages/core/src/test/testLogger.ts b/packages/core/src/test/testLogger.ts index 514e3115eda..6414b4bab99 100644 --- a/packages/core/src/test/testLogger.ts +++ b/packages/core/src/test/testLogger.ts @@ -51,7 +51,7 @@ export class TestLogger implements Logger { .map((loggedEntry) => loggedEntry.entry) } - public sendToLog(logLevel: LogLevel, msg: string, entries: Loggable[]): number { + public sendToLog(logLevel: LogLevel, msg: string, ...entries: Loggable[]): number { return this.addLoggedEntries(logLevel, [msg, ...entries]) }