fix #20449, insert space between decorators (#20491)

This commit is contained in:
Herrington Darkholme
2018-01-05 08:57:27 +08:00
committed by Mohamed Hegazy
parent 7ef541ca1f
commit 67eabb98bc
2 changed files with 8 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ namespace ts.formatting {
RuleAction.Delete),
// decorators
rule("SpaceBeforeAt", anyToken, SyntaxKind.AtToken, [isNonJsxSameLineTokenContext], RuleAction.Space),
rule("SpaceBeforeAt", [SyntaxKind.CloseParenToken, SyntaxKind.Identifier], SyntaxKind.AtToken, [isNonJsxSameLineTokenContext], RuleAction.Space),
rule("NoSpaceAfterAt", SyntaxKind.AtToken, anyToken, [isNonJsxSameLineTokenContext], RuleAction.Delete),
// Insert space after @ in decorator
rule("SpaceAfterDecorator",