Skip to content

Commit

Permalink
fix final edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Oct 18, 2023
1 parent 303a246 commit 6fa2700
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,7 @@ export class InlineChatController implements IEditorContribution {
response = new MarkdownResponse(this._activeSession.textModelN.uri, reply);
} else if (reply) {
const editResponse = new EditResponse(this._activeSession.textModelN.uri, this._activeSession.textModelN.getAlternativeVersionId(), reply, progressEdits);
const offset = editResponse.allLocalEdits.length - progressEdits.length;
for (let i = offset; i < editResponse.allLocalEdits.length; i++) {
for (let i = progressEdits.length; i < editResponse.allLocalEdits.length; i++) {
await this._makeChanges(editResponse.allLocalEdits[i], true);
}
response = editResponse;
Expand Down

0 comments on commit 6fa2700

Please sign in to comment.