Skip to content

Commit 44bab69

Browse files
Handle undefined element (microsoft#185596)
Fixes microsoft#185531
1 parent daa66ad commit 44bab69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/quickinput/browser/quickInputList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,8 @@ export class QuickInputList {
10061006
}
10071007

10081008
toggleHover() {
1009-
const element = this.list.getFocusedElements()[0];
1010-
if (!element.saneTooltip) {
1009+
const element: IListElement | undefined = this.list.getFocusedElements()[0];
1010+
if (!element?.saneTooltip) {
10111011
return;
10121012
}
10131013

0 commit comments

Comments
 (0)