We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb278bd commit 801f963Copy full SHA for 801f963
src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.ts
@@ -723,7 +723,9 @@ export class HunkData {
723
discardAll() {
724
const edits: ISingleEditOperation[][] = [];
725
for (const item of this.getInfo()) {
726
- edits.push(this._discardEdits(item));
+ if (item.getState() !== HunkState.Rejected) {
727
+ edits.push(this._discardEdits(item));
728
+ }
729
}
730
const undoEdits: IValidEditOperation[][] = [];
731
this._textModelN.pushEditOperations(null, edits.flat(), (_undoEdits) => {
0 commit comments