You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable emitting the generated files by setting <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
Build the solution
When razor generates the code behind for line 3 of SectionHeader.razor, which contains a tab, it replaces the tab with four spaces.
Meaning the generated code will look like this:
#line 3 "C:\Projects\MudBlazor\src\MudBlazor.Docs\Components\SectionHeader.razor"
if (!String.IsNullOrWhiteSpace(Title) && HideTitle == false) // This line contains 5 spaces prefix instead of 1 tab
{ // This line has the tab preserved
This is an issue since if one wants to do code analysis for the file and calls GetMappedLineSpan, it will not correctly map the location back to the razor file.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
When razor generates the code behind for line 3 of SectionHeader.razor, which contains a tab, it replaces the tab with four spaces.
Meaning the generated code will look like this:
This is an issue since if one wants to do code analysis for the file and calls GetMappedLineSpan, it will not correctly map the location back to the razor file.
The text was updated successfully, but these errors were encountered: