mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
SCM - fix SCMInput regression (#197910)
This commit is contained in:
parent
1ac02aacf6
commit
87d6b26100
|
@ -1739,11 +1739,8 @@ class SCMInputWidget {
|
|||
return;
|
||||
}
|
||||
|
||||
if (currentValue !== '') {
|
||||
this.inputEditor.pushUndoStop();
|
||||
}
|
||||
this.inputEditor.executeEdits(null, [EditOperation.replace(textModel.getFullModelRange(), value)]);
|
||||
this.inputEditor.pushUndoStop();
|
||||
textModel.pushStackElement();
|
||||
textModel.pushEditOperations(null, [EditOperation.replaceMove(textModel.getFullModelRange(), value)], () => []);
|
||||
|
||||
const position = reason === SCMInputChangeReason.HistoryPrevious
|
||||
? textModel.getFullModelRange().getStartPosition()
|
||||
|
|
Loading…
Reference in a new issue