Repository: vscode
Issue: Next Reference and Next Search Result Conflict
Labels: references-viewlet


Type: <b>Bug</b>

1. Open any folder where the programming language supports 'find all references'. I have tried python and c++ projects
2. Use the search feature (Ctrl + Shift + F)
3. Observe that pressing F4 cycles through the search results
4. Use the 'find all references' feature on a source code symbol
5. Overserve that pressing F4 cycles through the reference results
6. Use the search feature again
7. Observe that pressing F4 reopens the references panel and cycles references instead of search results (the currently active panel)

** Expected Result **
F4 key goes to the next item on the current panel (whether it be references or search results).

** Other Details **
I have tried this on insiders edition with only the minimum extensions required to use the 'find all references' feature.

** Hotkey Mapping **
137: { "key": "f4",                    "command": "references-view.next",
                                     "when": "reference-list.hasResult && references-view.canNavigate" },
...
1141: { "key": "f4",                    "command": "search.action.focusNextSearchResult",
                                     "when": "hasSearchResult || inSearchEditor" },



VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|13th Gen Intel(R) Core(TM) i9-13900K (32 x 2995)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|95.75GB (65.36GB free)|
|Process Argv|--crash-reporter-id 28a27f36-60c5-4553-bd3f-bc1be676f0c5|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (30)</summary>

Extension|Author (truncated)|Version
---|---|---
ruff|cha|2024.56.0
continue|Con|0.8.66
dart-code|Dar|3.102.0
flutter|Dar|3.102.0
vscode-eslint|dba|3.0.10
githistory|don|0.6.20
gitlab-workflow|Git|5.25.1
vscode-clangd|llv|0.1.33
git-graph|mhu|1.30.0
debugpy|ms-|2024.14.0
python|ms-|2024.22.2
vscode-pylance|ms-|2024.12.1
cmake-tools|ms-|1.19.52
cpptools|ms-|1.22.11
cpptools-extension-pack|ms-|1.3.0
hexeditor|ms-|1.11.1
powershell|ms-|2024.4.0
vs-keybindings|ms-|0.2.1
vsliveshare|ms-|1.0.5948
vscode-yaml|red|1.15.0
rust-analyzer|rus|0.3.2257
swift-lang|ssw|1.11.4
svelte-vscode|sve|109.5.1
even-better-toml|tam|0.21.2
cmake|twx|0.0.17
vscode-lldb|vad|1.11.1
vscode-svg-previewer|vit|0.7.0
gitblame|wad|11.1.1
change-case|wma|1.0.0
clang-format|xav|1.9.0

(5 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

```

</details>

<!-- generated by issue reporter -->