Skip to content

Commit 37842b3

Browse files
committed
fix: visibleCount should not go to nullable
Signed-off-by: Chapman Pendery <[email protected]>
1 parent 4580df9 commit 37842b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/services/suggest/browser/simpleSuggestWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class SimpleSuggestWidget implements IDisposable {
222222
return;
223223
}
224224

225-
const visibleCount = this._completionModel?.items.length;
225+
const visibleCount = this._completionModel?.items.length ?? 0;
226226
const isEmpty = visibleCount === 0;
227227
// this._ctxSuggestWidgetMultipleSuggestions.set(visibleCount > 1);
228228

0 commit comments

Comments
 (0)