Path: blob/main/src/vs/workbench/api/worker/extHostConsoleForwarder.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { AbstractExtHostConsoleForwarder } from '../common/extHostConsoleForwarder.js';6import { IExtHostInitDataService } from '../common/extHostInitDataService.js';7import { IExtHostRpcService } from '../common/extHostRpcService.js';89export class ExtHostConsoleForwarder extends AbstractExtHostConsoleForwarder {1011constructor(12@IExtHostRpcService extHostRpc: IExtHostRpcService,13@IExtHostInitDataService initData: IExtHostInitDataService,14) {15super(extHostRpc, initData);16}1718protected override _nativeConsoleLogMessage(_method: unknown, original: (...args: any[]) => void, args: IArguments) {19original.apply(console, args as any);20}21}222324