mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fixes #89857
This commit is contained in:
parent
c4309702c5
commit
7c53a1869d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue