-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve formatting of field with generics #47
Labels
Milestone
Comments
Welll, it looks like prettier does this: function withTypeArgs<
LooooooongArgument1,
LooooooooongArgument2,
LooooooongArgument3
>(
someLongVarForTheHellOfIt: LooooooongArgument1<
WithSubArg1<WithSubSubArg1, AndSubArg2>,
AndSubArg2
>
) {} Which (I think) we can replicate pretty easily by using |
Possibly related private static readonly Func<SyntaxTrivia,
bool> s_isVisualBasicCommentTrivia = (
syntaxTrivia
) => syntaxTrivia.IsKind(VisualBasic.SyntaxKind.CommentTrivia) |
I broke off the |
belav
added a commit
that referenced
this issue
May 29, 2021
belav
added a commit
that referenced
this issue
May 31, 2021
belav
added a commit
that referenced
this issue
May 31, 2021
belav
added a commit
that referenced
this issue
Jun 2, 2021
belav
changed the title
Field with generics formats weird
Improve formatting of field with generics
Jun 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are probably also some edge cases around generics that aren't handled yet, because this feels like a weird way to break if it were too long by itself
The text was updated successfully, but these errors were encountered: