Skip to content

Commit 142bf28

Browse files
committed
use item?.match
1 parent 1c09a05 commit 142bf28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class TextSearchQuickAccess extends PickerQuickAccessProvider<ITextSearch
104104
disposables.add(picker.onDidChangeActive(() => {
105105
const [item] = picker.activeItems;
106106

107-
if (item && item.match) {
107+
if (item?.match) {
108108
// only store location once, or else it will store new state every time we change active pick
109109
if (!this.storedOriginalLocation) {
110110
// we must remember our curret view state to be able to restore

0 commit comments

Comments
 (0)