Skip to content

Code folding fail for arrow function when param list has no parentheses #33286

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

Closed
golopot opened this issue Sep 6, 2019 · 0 comments · Fixed by #38631
Closed

Code folding fail for arrow function when param list has no parentheses #33286

golopot opened this issue Sep 6, 2019 · 0 comments · Fixed by #38631
Labels
Bug A bug in TypeScript Domain: Outlining Relates to multi-line regions that editors can collapse
Milestone

Comments

@golopot
Copy link

golopot commented Sep 6, 2019

TypeScript Version: ???

VS Code version: Code - OSS 1.38.0 (3db7e09, 2019-09-05T13:09:16.557Z)

OS version: Linux x64 5.2.8-arch1-1-ARCH

Search Terms:
code fold
folding
arrow function
parenthesis

Code

// expected
// curly block is foldable
testThing(
  (a) => {

  }
)

// unexpected
// curly block is **not** foldable 
testThing(
  a => {

  }
)

Expected behavior:
vscode let me fold the arrow function body.

Actual behavior:
It does not.

Playground Link:
Not applicable.

Related Issues:
no

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Sep 12, 2019
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Sep 12, 2019
@RyanCavanaugh RyanCavanaugh added the Domain: Outlining Relates to multi-line regions that editors can collapse label Sep 12, 2019
@golopot golopot changed the title Code folding fail for arrow function when param list has not parentheses Code folding fail for arrow function when param list has no parentheses Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Outlining Relates to multi-line regions that editors can collapse
Projects
None yet
2 participants