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
Fixed incorrect insertSpaceBeforeFunctionParenthesis behavior on functions with type-arguments
There was an interference between the SpaceBeforeOpenParenInFuncDecl and the NoSpaceAfterCloseAngularBracket rules. So, the NoSpaceAfterCloseAngularBracket eliminated a space which has been added by the SpaceBeforeOpenParenInFuncDecl rule.
this.NoSpaceAfterCloseAngularBracket=newRule(RuleDescriptor.create3(SyntaxKind.GreaterThanToken,Shared.TokenRange.FromTokens([SyntaxKind.OpenParenToken,SyntaxKind.OpenBracketToken,SyntaxKind.GreaterThanToken,SyntaxKind.CommaToken])),RuleOperation.create2(newRuleOperationContext(Rules.IsNonJsxSameLineTokenContext,Rules.IsTypeArgumentOrParameterOrAssertionContext,Rules.IsNotFunctionDeclContext/*To prevent an interference with the SpaceBeforeOpenParenInFuncDecl rule*/),RuleAction.Delete));
383
383
384
384
// Remove spaces in empty interface literals. e.g.: x: {}
0 commit comments