Skip to content

Outlining spans for jsx elements #23273

@mjbvz

Description

@mjbvz

From microsoft/vscode#47454

TypeScript Version: 2.9.0-dev.20180409

Search Terms:

  • getOutliningSpans
  • fold / folding
  • jsx

Code
For the jsx:

const a = <div
    about="bla"
    accessKey="bla"
    autoCorrect="bla"/> 

Current Behavior
No outlining spans returned

Request
Return outlining spans for multline jsx tags

Other cases:

const a = (
    <div>
        a
    </div>
)

Metadata

Metadata

Labels

Domain: JSX/TSXRelates to the JSX parser and emitterDomain: LS: OutliningRelates to multi-line regions that editors can collapseFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions