Skip to content

Commit b43d2e4

Browse files
author
Benjamin Pasero
committed
1 parent e694b04 commit b43d2e4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,12 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
746746
return null; // we need a resource that we can resolve
747747
}
748748

749+
if (activeGlobalPick.label.includes(GotoSymbolQuickAccessProvider.PREFIX) || activeGlobalPick.description?.includes(GotoSymbolQuickAccessProvider.PREFIX)) {
750+
if (filterSegments.length < 3) {
751+
return null; // require at least 2 `@` if our active pick contains `@` in label or description
752+
}
753+
}
754+
749755
return this.doGetEditorSymbolPicks(activeGlobalPick, activeGlobalResource, filter, disposables, token);
750756
}
751757

0 commit comments

Comments
 (0)