Skip to content

Support try/catch/finally fold #5201

@Fernandomr88

Description

@Fernandomr88

A lot of times try/catch clauses can be quite large, with dozens of lines. I usually need to fold using the closest if to the top. But makes me wonder if wouldn't be the case to add folding capability to it.

At this example i can fold return but not code within brackets (try/catch)

Captura de Tela 2024-07-27 às 10 10 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions