mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
chat: allow referencing and dragging in diagnostics - There is a new proposal which adds `ChatReferenceDiagnostic` as a prompt reference type - You can now pick "Problems..." as part of the chat attachment context - You can drag and drop files and individual diagnostics from the Problems view into chat. Previously trying to do this would just attach the file.
24 lines
889 B
TypeScript
24 lines
889 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 ChatPromptReference {
|
|
/**
|
|
* The value of this reference. The `string | Uri | Location` types are used today, but this could expand in the future.
|
|
*/
|
|
readonly value: string | Uri | Location | ChatReferenceDiagnostic | unknown;
|
|
}
|
|
|
|
export class ChatReferenceDiagnostic {
|
|
/**
|
|
* All attached diagnostics. An array of uri-diagnostics tuples or an empty array.
|
|
*/
|
|
readonly diagnostics: [Uri, Diagnostic[]][];
|
|
|
|
protected constructor(diagnostics: [Uri, Diagnostic[]][]);
|
|
}
|
|
}
|