Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/chat/vscode-node/hooksOutputChannel.ts
13399 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { LogOutputChannel, window } from 'vscode';
7
import { IHooksOutputChannel } from '../../../platform/chat/common/hooksOutputChannel';
8
9
export class HooksOutputChannel implements IHooksOutputChannel {
10
declare readonly _serviceBrand: undefined;
11
12
private _channel: LogOutputChannel | undefined;
13
14
appendLine(message: string): void {
15
if (!this._channel) {
16
this._channel = window.createOutputChannel('GitHub Copilot Chat Hooks', { log: true });
17
}
18
this._channel.info(message);
19
}
20
}
21
22