Skip to content

Outlining spans for jsx elementsย #23273

Closed
@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: 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