New reference panel: handle `codeIntel.mixPreciseAndSearchBasedReferences`
Created by: mrnugget
This fixes one of the last big chunks of https://github.com/sourcegraph/sourcegraph/issues/30970 by replicating the behaviour in code-intel-extensions
where we mix precise and search-based results depending on the user setting.
It works (see video below), but I ran into two issues that I think can be fixed as follow-ups:
- https://github.com/sourcegraph/sourcegraph/issues/33412 - this is a bug that we should fix
- https://github.com/sourcegraph/sourcegraph/issues/33417 - this might be nice to have
Video:
https://user-images.githubusercontent.com/1185253/161749404-facc90c1-226a-4b39-97b9-3a7cad3a9424.mp4
Test plan
Tested this locally (see video). With different pagination sizes and in repos with and without precise code intel.