Path: blob/main/extensions/copilot/src/extension/chat/vscode-node/hooksOutputChannel.ts
13399 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 { LogOutputChannel, window } from 'vscode';6import { IHooksOutputChannel } from '../../../platform/chat/common/hooksOutputChannel';78export class HooksOutputChannel implements IHooksOutputChannel {9declare readonly _serviceBrand: undefined;1011private _channel: LogOutputChannel | undefined;1213appendLine(message: string): void {14if (!this._channel) {15this._channel = window.createOutputChannel('GitHub Copilot Chat Hooks', { log: true });16}17this._channel.info(message);18}19}202122