Skip to content

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

Closed

Description

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

Activity

  1. 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[/+] on Sep 27, 2019
  2. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: OutliningRelates to multi-line regions that editors can collapse

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions