-
Notifications
You must be signed in to change notification settings - Fork 340
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 enhancementrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
With the addition of patterns to the Dart language, it would be nice if code folding could be used on switch statements, much as it can be used for other control flow such as if statements.
For example, given the code:
switch (expr) {
case 0:
statement;
statement;
statement;
case 1:
statement;
statement;
statement;
}It would be nice to be able to collapse individual cases, e.g.
switch (expr) {
case 0: …
case 1:
statement;
statement;
statement;
}Or to collapse the entire switch statement:
switch (expr) {…
}tuannvm-citigo
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 enhancementrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available