add InteractiveEditorResponseFeedbackKind as dedicated enum (#178043)

This commit is contained in:
Johannes Rieken
2023-03-22 19:28:29 +01:00
committed by GitHub
parent 700f9aca90
commit d02cb53f06
6 changed files with 45 additions and 8 deletions

View File

@@ -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;
}