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
Copy file name to clipboardexpand all lines: src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Formatting/Passes/New/CSharpFormattingPass.CSharpDocumentGenerator.cs
+44-6
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,16 @@ private sealed class Generator(
141
141
/// having to do lots of tree traversal.
142
142
/// </remarks>
143
143
privateint?_elementEndLine;
144
+
/// <summary>
145
+
/// The line number of the last line of a block where formatting should be completely ignored
146
+
/// </summary>
147
+
/// <remarks>
148
+
/// Some Html constructs, namely <textarea> and <pre>, should not be formatted at all, and we essentially
149
+
/// need to treat them as multiline Razor comments. This field is used to track the line number of the last line of such
150
+
/// an element, so we can ignore every line in it without having to do lots of tree traversal to check "are we parented
0 commit comments