We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff4f03c commit 3f82034Copy full SHA for 3f82034
1 file changed
src/services/formatting/rules.ts
@@ -619,7 +619,7 @@ namespace ts.formatting {
619
}
620
621
function isJsxExpressionContext(context: FormattingContext): boolean {
622
- return context.contextNode.kind === SyntaxKind.JsxExpression;
+ return context.contextNode.kind === SyntaxKind.JsxExpression || context.contextNode.kind === SyntaxKind.JsxSpreadAttribute;
623
624
625
function isNextTokenParentJsxAttribute(context: FormattingContext): boolean {
0 commit comments