Skip to content

Commit 882d166

Browse files
Tweak
1 parent f17b141 commit 882d166

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Formatting/Rules/IndentBlockFormattingRule.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ private static void AddParenthesizedPatternIndentationOperation(List<IndentBlock
298298
var endToken = parenthesizedPattern.CloseParenToken.GetPreviousToken(includeZeroWidth: true);
299299
AddIndentBlockOperation(
300300
list, startToken, endToken,
301-
TextSpan.FromBounds(parenthesizedPattern.OpenParenToken.Span.End, parenthesizedPattern.CloseParenToken.Span.End));
301+
TextSpan.FromBounds(
302+
parenthesizedPattern.OpenParenToken.Span.End,
303+
parenthesizedPattern.CloseParenToken.Span.Start));
302304
}
303305

304306
private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair)

0 commit comments

Comments
 (0)