Skip to content

Folding for multi-line statements when wrapped in parenthesis #47296

@SuperKXT

Description

@SuperKXT

TS Template added by @mjbvz

TypeScript Version: 4.4.3

Search Terms

  • getOutliningSpans
  • fold / folding

In Javascript, I sometimes format long statements by breaking them into multiple lines by using parentheses. The folding doesn't work for these statements.
image

The folding does work for single statement functions that are wrapped in parenthesis.
image

I can set foldingStrategy to 'indention' but that breaks the JSX folding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueDomain: OutliningRelates to multi-line regions that editors can collapseFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions