mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
30 lines
998 B
TypeScript
30 lines
998 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
declare module 'vscode' {
|
|
|
|
export interface ChatRequestDraft {
|
|
readonly prompt: string;
|
|
readonly files: readonly Uri[];
|
|
}
|
|
|
|
export interface ChatRelatedFile {
|
|
readonly uri: Uri;
|
|
readonly description: string;
|
|
}
|
|
|
|
export interface ChatRelatedFilesProviderMetadata {
|
|
readonly description: string;
|
|
}
|
|
|
|
export interface ChatRelatedFilesProvider {
|
|
provideRelatedFiles(chatRequest: ChatRequestDraft, token: CancellationToken): ProviderResult<ChatRelatedFile[]>;
|
|
}
|
|
|
|
export namespace chat {
|
|
export function registerRelatedFilesProvider(provider: ChatRelatedFilesProvider, metadata: ChatRelatedFilesProviderMetadata): Disposable;
|
|
}
|
|
}
|