mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-02 23:05:15 +01:00
fixes #109566
Co-authored-by: Megan Rogge <megan.rogge@microsoft.com> Co-authored-by: Eric Amodio <eric.amodio@microsoft.com>
This commit is contained in:
co-authored by
Megan Rogge
Eric Amodio
parent
bd0e1b8dbd
commit
848876f7b9
@@ -1346,11 +1346,11 @@ class SCMInputWidget extends Disposable {
|
||||
}
|
||||
textModel.setValue(value);
|
||||
|
||||
if (reason === SCMInputChangeReason.HistoryPrevious) {
|
||||
this.inputEditor.setPosition(textModel.getFullModelRange().getStartPosition());
|
||||
} else {
|
||||
this.inputEditor.setPosition(textModel.getFullModelRange().getEndPosition());
|
||||
}
|
||||
const position = reason === SCMInputChangeReason.HistoryPrevious
|
||||
? textModel.getFullModelRange().getStartPosition()
|
||||
: textModel.getFullModelRange().getEndPosition();
|
||||
this.inputEditor.setPosition(position);
|
||||
this.inputEditor.revealPositionInCenterIfOutsideViewport(position);
|
||||
}));
|
||||
|
||||
// Keep API in sync with model, update placeholder visibility and validate
|
||||
|
||||
Reference in New Issue
Block a user