only filter when quick pick is visible

This commit is contained in:
Benjamin Pasero 2021-11-26 09:51:34 +01:00
parent ca07441587
commit f00d30357f
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -496,9 +496,11 @@ class QuickPick<T extends IQuickPickItem> extends QuickInput implements IQuickPi
if (!skipUpdate) {
this.update();
}
const didFilter = this.ui.list.filter(this.filterValue(this._value));
if (didFilter) {
this.trySelectFirst();
if (this.visible) {
const didFilter = this.ui.list.filter(this.filterValue(this._value));
if (didFilter) {
this.trySelectFirst();
}
}
this.onDidChangeValueEmitter.fire(this._value);
}