Ctrl+T shows .razor.g.cs files
Describe the bug:
Having a blazor solution, and using Ctrl + T (or Q) to find a Blazor File (.razor) will show the .razor.g.cs files as first result before '.razor' files
Version used: VS2022 17.3.0 To reproduce:
- Ctrl + T
- Type "Index"
- Note
Index.razor.g.cswill be the first result
Expected behavior:
Think razor.g.cs files shouldn't even be in the result, hitting enter or clicking on these results doesn't do anything anyway
here's a small demo: https://youtu.be/Ysrvs1YvvkQ
This might be a duplicate, because I think this has come up before, but this would be fixed if the compiler emitted a #line mapping around the generated class name.
@davidwengier I've reported this some time ago here: https://developercommunity.visualstudio.com/t/CtrlQ-suggests-razorgcs-file-as-firs/1644429?entry=myfeedback&ref=native&refTime=1661495164982&refUserId=9d729c8c-5928-4daf-83d0-c5f5224d9803
but as you can see it didn't go anywhere
Looks like that was incorrectly characterized as being a problem with the search function in Visual Studio. Rest assured this is in the right place now :)
since VS 17.4 the VS "Go To All" is showing me .ide.g.cs files, on top of the list of course
Situation is unresolved as of VS 17.11.5