Skip to content

Commit 898311b

Browse files
authored
1 parent 52e56ad commit 898311b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/vs/workbench/api/common/extHostInteractiveEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export class ExtHostInteractiveEditor implements ExtHostInteractiveEditorShape {
139139
prompt: request.prompt,
140140
selection: typeConvert.Selection.to(request.selection),
141141
wholeRange: typeConvert.Range.to(request.wholeRange),
142+
attempt: request.attempt,
142143
}, token);
143144

144145
if (res) {

src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ export class InteractiveEditorController implements IEditorContribution {
433433
const request: IInteractiveEditorRequest = {
434434
prompt: this._activeSession.lastInput,
435435
selection: this._editor.getSelection(),
436-
wholeRange: this._activeSession.wholeRange
436+
wholeRange: this._activeSession.wholeRange,
437+
attempt: 0,
437438
};
438439
const task = this._activeSession.provider.provideResponse(this._activeSession.session, request, requestCts.token);
439440
this._logService.trace('[IE] request started', this._activeSession.provider.debugName, this._activeSession.session, request);

src/vs/workbench/contrib/interactiveEditor/common/interactiveEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface IInteractiveEditorRequest {
3737
prompt: string;
3838
selection: ISelection;
3939
wholeRange: IRange;
40+
attempt: number;
4041
}
4142

4243
export type IInteractiveEditorResponse = IInteractiveEditorEditResponse | IInteractiveEditorBulkEditResponse | IInteractiveEditorMessageResponse;

src/vscode-dts/vscode.proposed.interactive.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ declare module 'vscode' {
2626

2727
selection: Selection;
2828
wholeRange: Range;
29+
attempt: number;
2930
}
3031

3132
// todo@API make classes

0 commit comments

Comments
 (0)