Skip to content

Commit 5c315bf

Browse files
authored
When revealing/navigation hunks, reveal the line one above so that the deleted-view-zone and its hunk actions are fully visible (microsoft#250721)
fixes microsoft#247374
1 parent 8a39881 commit 5c315bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ export class ChatEditingCodeEditorIntegration implements IModifiedFileEntryEdito
552552
const targetRange = decorations[newIndex];
553553
const targetPosition = next ? targetRange.getStartPosition() : targetRange.getEndPosition();
554554
this._editor.setPosition(targetPosition);
555-
this._editor.revealPositionInCenter(targetPosition);
555+
this._editor.revealPositionInCenter(targetRange.getStartPosition().delta(-1));
556556
this._editor.focus();
557557

558558
return true;

0 commit comments

Comments
 (0)