fix: visibleCount should not go to nullable

Signed-off-by: Chapman Pendery <cpendery@microsoft.com>
This commit is contained in:
Chapman Pendery 2024-03-26 11:41:43 -07:00
parent 4580df9d4f
commit 37842b3f92

View file

@ -222,7 +222,7 @@ export class SimpleSuggestWidget implements IDisposable {
return;
}
const visibleCount = this._completionModel?.items.length;
const visibleCount = this._completionModel?.items.length ?? 0;
const isEmpty = visibleCount === 0;
// this._ctxSuggestWidgetMultipleSuggestions.set(visibleCount > 1);