-
Notifications
You must be signed in to change notification settings - Fork 236
Handle Html indentation ourselves, rather than using the IDE formatter #12621
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
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a6b2bd6
Simplify helper method
davidwengier 71c5305
Drop Html indentation changes unless they're in script or style tags
davidwengier c06c22e
Drop all html formatting changes before the first non-whitespace char…
davidwengier 94d066b
Indent attributes in line with the first attribute on an element
davidwengier d8a3fca
Add basic Html attribute test, and fix bug with generic type params
davidwengier eb6d9a2
Format RenderFragments that start in explicit expressions
davidwengier e19c614
Copy indentation from the previous line when ignoring an open brace
davidwengier e9795e9
Code blocks are always at column 0
davidwengier 60b6257
Text outside of Html elements if formatted to column 0
davidwengier 0b2b168
Update implicit and explicit expression test outputs
davidwengier b4b9a6d
Update "bad input" test output
davidwengier 143126c
Update RenderFragment test outputs
davidwengier 8ac743c
Add a few more tests to demonstrate fixed issues
davidwengier 4b6666c
Don't do any formatting in Html comments
davidwengier a12f688
Update doc comment to represent the new behaviour
davidwengier df04f2a
Fix first attribute alignment calculation, add more test coverage
davidwengier 7a3f323
Fix test baseline
davidwengier e3ef464
Fix formatting in release mode
davidwengier 61a0354
Unskip test, because I accidentally fixed it :)
davidwengier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
227 changes: 179 additions & 48 deletions
227
...alysis.Razor.Workspaces/Formatting/Passes/CSharpFormattingPass.CSharpDocumentGenerator.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably goes without saying, but make sure you're viewing this diff with whitespace on :)