Merge pull request #5581 from chezsmithy/fix(diff-editor)-performance
fix(diff-editor)-performance
This commit is contained in:
commit
babcf33ecd
1 changed files with 11 additions and 0 deletions
|
|
@ -127,6 +127,11 @@ export class VerticalDiffHandler implements vscode.Disposable {
|
|||
private incrementCurrentLineIndex() {
|
||||
this.currentLineIndex++;
|
||||
this.updateIndexLineDecorations();
|
||||
const range = new vscode.Range(this.currentLineIndex, 0, this.currentLineIndex, 0);
|
||||
this.editor.revealRange(
|
||||
range,
|
||||
vscode.TextEditorRevealType.Default,
|
||||
);
|
||||
}
|
||||
|
||||
private async insertTextAboveLine(index: number, text: string) {
|
||||
|
|
@ -338,6 +343,12 @@ export class VerticalDiffHandler implements vscode.Disposable {
|
|||
|
||||
await this.reapplyWithMyersDiff(diffLines);
|
||||
|
||||
const range = new vscode.Range(this.startLine, 0, this.startLine, 0);
|
||||
this.editor.revealRange(
|
||||
range,
|
||||
vscode.TextEditorRevealType.Default,
|
||||
);
|
||||
|
||||
this.options.onStatusUpdate(
|
||||
"done",
|
||||
this.editorToVerticalDiffCodeLens.get(this.fileUri)?.length ?? 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue