razor icon indicating copy to clipboard operation
razor copied to clipboard

Ctrl+T shows .razor.g.cs files

Open omuleanu opened this issue 3 years ago • 5 comments

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:

  1. Ctrl + T
  2. Type "Index"
  3. Note Index.razor.g.cs will 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

omuleanu avatar Aug 12 '22 06:08 omuleanu

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 avatar Aug 26 '22 05:08 davidwengier

@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

omuleanu avatar Aug 26 '22 06:08 omuleanu

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 :)

davidwengier avatar Aug 26 '22 06:08 davidwengier

since VS 17.4 the VS "Go To All" is showing me .ide.g.cs files, on top of the list of course

omuleanu avatar Nov 15 '22 17:11 omuleanu

Situation is unresolved as of VS 17.11.5

jon001 avatar Oct 25 '24 15:10 jon001