diff --git a/src/vs/workbench/contrib/scm/browser/repositoryPane.ts b/src/vs/workbench/contrib/scm/browser/repositoryPane.ts index 41e20df51152984f0932749869cc7c000f43ad26..3e01e03f569841a3827c1f1d529ebccf94cd9c2f 100644 --- a/src/vs/workbench/contrib/scm/browser/repositoryPane.ts +++ b/src/vs/workbench/contrib/scm/browser/repositoryPane.ts @@ -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);