mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
add InteractiveEditorResponseFeedbackKind as dedicated enum (#178043)
This commit is contained in:
@@ -42,6 +42,12 @@ declare module 'vscode' {
|
||||
wholeRange?: Range;
|
||||
}
|
||||
|
||||
export enum InteractiveEditorResponseFeedbackKind {
|
||||
Unhelpful = 0,
|
||||
Helpful = 1,
|
||||
Undone = 2
|
||||
}
|
||||
|
||||
export interface TextDocumentContext {
|
||||
document: TextDocument;
|
||||
selection: Selection;
|
||||
@@ -59,7 +65,7 @@ declare module 'vscode' {
|
||||
|
||||
// todo@API use enum instead of boolean
|
||||
// eslint-disable-next-line local/vscode-dts-provider-naming
|
||||
handleInteractiveEditorResponseFeedback?(session: InteractiveEditorSession, response: InteractiveEditorResponse | InteractiveEditorMessageResponse, helpful: boolean): void;
|
||||
handleInteractiveEditorResponseFeedback?(session: InteractiveEditorSession, response: InteractiveEditorResponse | InteractiveEditorMessageResponse, kind: InteractiveEditorResponseFeedbackKind): void;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user