Skip to content
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

When function parameters span multiple lines, make the function span start at the ( #26907

Merged
merged 2 commits into from Apr 25, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 5, 2018

Fixes #22915

Should be convenient in codebases formatted by prettier which often formats parameters on multiple lines.
Unlike #26692 this works in both vscode and visual studio without modification.

outlining_vscode

outlining_vs

@RyanCavanaugh RyanCavanaugh added this to the Future milestone Sep 17, 2018
hintSpanNode: Node,
autoCollapse = false,
useFullStart = true,
open: SyntaxKind.OpenBraceToken | SyntaxKind.OpenBracketToken | SyntaxKind.OpenParenToken = SyntaxKind.OpenBraceToken,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this change? I'm not seeing any change in callers.

@RyanCavanaugh RyanCavanaugh merged commit 6e4c150 into master Apr 25, 2019
@RyanCavanaugh RyanCavanaugh deleted the getOutliningSpansForFunctionParameters branch April 25, 2019 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add folding for multi-line parameter lists
2 participants