mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
add attempt
to InteractiveEditorRequest
(#183447)
https://github.com/microsoft/vscode-internalbacklog/issues/3694
This commit is contained in:
parent
52e56ad19a
commit
898311b454
|
@ -139,6 +139,7 @@ export class ExtHostInteractiveEditor implements ExtHostInteractiveEditorShape {
|
|||
prompt: request.prompt,
|
||||
selection: typeConvert.Selection.to(request.selection),
|
||||
wholeRange: typeConvert.Range.to(request.wholeRange),
|
||||
attempt: request.attempt,
|
||||
}, token);
|
||||
|
||||
if (res) {
|
||||
|
|
|
@ -433,7 +433,8 @@ export class InteractiveEditorController implements IEditorContribution {
|
|||
const request: IInteractiveEditorRequest = {
|
||||
prompt: this._activeSession.lastInput,
|
||||
selection: this._editor.getSelection(),
|
||||
wholeRange: this._activeSession.wholeRange
|
||||
wholeRange: this._activeSession.wholeRange,
|
||||
attempt: 0,
|
||||
};
|
||||
const task = this._activeSession.provider.provideResponse(this._activeSession.session, request, requestCts.token);
|
||||
this._logService.trace('[IE] request started', this._activeSession.provider.debugName, this._activeSession.session, request);
|
||||
|
|
|
@ -37,6 +37,7 @@ export interface IInteractiveEditorRequest {
|
|||
prompt: string;
|
||||
selection: ISelection;
|
||||
wholeRange: IRange;
|
||||
attempt: number;
|
||||
}
|
||||
|
||||
export type IInteractiveEditorResponse = IInteractiveEditorEditResponse | IInteractiveEditorBulkEditResponse | IInteractiveEditorMessageResponse;
|
||||
|
|
|
@ -26,6 +26,7 @@ declare module 'vscode' {
|
|||
|
||||
selection: Selection;
|
||||
wholeRange: Range;
|
||||
attempt: number;
|
||||
}
|
||||
|
||||
// todo@API make classes
|
||||
|
|
Loading…
Reference in a new issue