-
Notifications
You must be signed in to change notification settings - Fork 343
Code block folding for enum #3225
Copy link
Copy link
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart 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.An enhancement or improvement that should be listed in release notes but is not a bug fix.
Milestone
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart 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.An enhancement or improvement that should be listed in release notes but is not a bug fix.
Is your feature request related to a problem? Please describe.
With most code blocks contained in curly braces (
{}), you are able to collapse/fold them. With anenum(that can take up multiple lines with trailing commas or otherwise), you are unable to fold these "blocks".Describe the solution you'd like
I'd like to be able to fold an dart
enumin VS Code.to
Describe alternatives you've considered
I've looked around at some settings, but I can't seem to find any obvious rules/settings to enable this behavior.
Additional context
In unsaved documents (Untitled-1-like) I am able to fold them with Dart language mode on. But once I save them as a
.dartfile, the option is gone. See images below.