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

Use correct column number for Razor #17204

Merged
merged 2 commits into from
Apr 27, 2021
Merged

Use correct column number for Razor #17204

merged 2 commits into from
Apr 27, 2021

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Apr 26, 2021

Resolves Razor compile errors that are dependant on column position (e.g. "directive must be at start of line")

Fixes dotnet/aspnetcore#32154
Fixes dotnet/aspnetcore#31783

/cc @captainsafia

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@benaadams
Copy link
Member Author

Aside the source generator is so much faster at compiling than the previous method 💜

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

The tests in SourceTextSourceLineCollectionTest that need to be updated.

In hindsight, that test would've served as a good indicator of this bug.

@benaadams
Copy link
Member Author

Made test fix

@benaadams
Copy link
Member Author

Is it too late to get this into preview4 since it causes compile errors?

@captainsafia
Copy link
Member

Unfortunately, we missed the cutoff for preview4 with this one so it'll have to land in preview5.

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