A customer wants to return context items from their provider if the user's query matches some keywords. They wish to bypass the whole mentions process and return context items for queries on submission time.
This makes sense and is useful.
This PR adds meta.items.querySelectors which will be used at query evaluation time to match with query and then call provider.items for the matching providers to collect context items.
Context: https://sourcegraph.slack.com/archives/C04MSD3DP5L/p1721935489008949
A customer wants to return context items from their provider if the user's query matches some keywords. They wish to bypass the whole mentions process and return context items for queries on submission time.
This makes sense and is useful.
This PR adds
meta.items.querySelectors
which will be used at query evaluation time to match with query and then callprovider.items
for the matching providers to collect context items.