Skip to content

Support try/catch/finally fold #5201

Closed
Closed

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

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Jul 27, 2024
  2. added this to the v3.96.0 milestone on Jul 29, 2024
  3. added
    in editorRelates to code editing or language features
    in lsp/analysis serverSomething to be fixed in the Dart analysis server
    on Jul 29, 2024
  4. modified the milestones: v3.96.0, v3.98.0 on Aug 27, 2024
  5. modified the milestones: v3.98.0, v3.100.0 on Sep 30, 2024
  6. modified the milestones: v3.100.0, On Deck on Oct 27, 2024
  7. modified the milestones: On Deck, v3.112.0 on Apr 23, 2025
  8. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on May 27, 2025
  9. DanTup commented on May 28, 2025

    @DanTup
    Member

    Fixed by dart-lang/sdk@d2c0f0a.

    This change is in the Dart analysis server so will ship with a future Dart/Flutter SDK release rather than show up in the VS Code extension release.

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

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.relies 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