We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a8dc7a + 7c53a18 commit ba74df4Copy full SHA for ba74df4
1 file changed
src/vs/workbench/contrib/scm/browser/repositoryPane.ts
@@ -769,7 +769,12 @@ export class RepositoryPane extends ViewPane {
769
770
// Keep model in sync with API
771
this.inputModel.setValue(this.repository.input.value);
772
- this._register(this.repository.input.onDidChange(value => this.inputModel.setValue(value)));
+ this._register(this.repository.input.onDidChange(value => {
773
+ if (value === this.inputModel.getValue()) {
774
+ return;
775
+ }
776
+ this.inputModel.setValue(value);
777
+ }));
778
779
// Keep API in sync with model and update placeholder and validation
780
toggleClass(placeholderTextContainer, 'hidden', this.inputModel.getValueLength() > 0);
0 commit comments