Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Mar 5, 2025
1 parent 9e4fa92 commit e910350
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,13 @@ export class SimpleSuggestWidget<TModel extends SimpleCompletionModel<TItem>, TI
}

private _setState(state: State): void {

if (this._state === state) {
if (this._state === State.Empty) {
// Don't keep the widget around if there are no suggestions
// as typing more is not going to yield new ones
this.hide();
this._state = State.Empty;
}
return;
}
this._state = state;
Expand Down

0 comments on commit e910350

Please sign in to comment.