未验证 提交 ba74df45 编写于 作者: J João Moreno 提交者: GitHub

Merge pull request #89871 from jeanp413/fix-89857

Fixes cannot undo in SCM input box
......@@ -769,7 +769,12 @@ export class RepositoryPane extends ViewPane {
// Keep model in sync with API
this.inputModel.setValue(this.repository.input.value);
this._register(this.repository.input.onDidChange(value => this.inputModel.setValue(value)));
this._register(this.repository.input.onDidChange(value => {
if (value === this.inputModel.getValue()) {
return;
}
this.inputModel.setValue(value);
}));
// Keep API in sync with model and update placeholder and validation
toggleClass(placeholderTextContainer, 'hidden', this.inputModel.getValueLength() > 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册