Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/diff-viewer-optmize
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jul 5, 2024
2 parents cf2d0cd + ae0cfd5 commit f5aba17
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,20 +398,6 @@ export class InlineStreamDiffHandler extends Disposable {
this.monacoEditor.focus();
}

end() {
this.recompute(EComputerMode.legacy);

const { changes } = this.currentDiffModel;
const zone = this.getZone();

const allAddRanges = changes.map((c) => {
const lineNumber = zone.startLineNumber + c.addedRange.startLineNumber - 1;
return new LineRange(lineNumber, lineNumber + 1);
});
this.renderPartialEditWidgets(allAddRanges);
this.pushStackElement();
}

get onPartialEditEvent() {
return this.livePreviewDiffDecorationModel.onPartialEditEvent;
}
Expand Down

0 comments on commit f5aba17

Please sign in to comment.