Skip to content

Commit c364ff2

Browse files
authored
Don't update diff or accept changes when document is just changing (microsoft#199661)
fixes microsoft/vscode-copilot#3134, microsoft/vscode-copilot#3139
1 parent 5a7b7be commit c364ff2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -900,19 +900,6 @@ export class LiveStrategy3 extends EditModeStrategy {
900900
}
901901
: undefined;
902902

903-
904-
this._sessionStore.add(this._session.textModelN.onDidChangeContent(e => {
905-
906-
for (const editRange of e.changes.map(c => c.range).flat()) {
907-
if (Range.areIntersectingOrTouching(modifiedRange, editRange)) {
908-
// implicit accepted
909-
this._modifiedRangesThatHaveBeenInteractedWith.push(id);
910-
}
911-
}
912-
this._showDiff(true, true);
913-
}));
914-
915-
916903
const zoneLineNumber = this._zone.position!.lineNumber;
917904
const myDistance = zoneLineNumber <= modifiedRange.startLineNumber
918905
? modifiedRange.startLineNumber - zoneLineNumber

0 commit comments

Comments
 (0)