Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support line pragmas for find all references #1649

Closed
NTaylorMullen opened this issue Nov 9, 2019 · 0 comments · Fixed by #1660
Closed

Support line pragmas for find all references #1649

NTaylorMullen opened this issue Nov 9, 2019 · 0 comments · Fixed by #1660

Comments

@NTaylorMullen
Copy link
Contributor

NTaylorMullen commented Nov 9, 2019

In Razor scenarios where you have a front level file such as

<!-- Counter.razor -->
<p>@MyType.Method()</p>

It generates virtual C# documents under the path Counter.razor__virtual.cs that looks like:

...
#line 456 "C:/path/to/Index.razor"
__o = MyType.Method();
#line default

When you do find all references on the corresponding C# MyType.Method member you get:
image

If find all references (FAR) respected line pragmas and then assumed column 0 (line pragmas don't give column info) this would work without having to actually read the Razor file 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant