-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Closed
Labels
info-neededIssue requires more information from posterIssue requires more information from poster
Description
Does this issue occur when all extensions are disabled?: No
- VS Code Version: 1.70 (July)
- OS Version: Mac OS 12.3 (ARM)
Steps to Reproduce:
- Install Dart extension
- Create this file:
void functionWithNamedParameters({
required String parameter1,
required String parameter2,
}) {
print('parameter1: $parameter1');
print('parameter2: $parameter2');
print('I cannot fold in 1.70, but I can in 1.60!');
}
When I use 1.69 (June) version folding works as expected:

When I use 1.70 (July) version folding of function's body is impossible (only one arrow / chevron is visible):

And it results in this:

With Insider version it fails as well:

When I disable Dart extension it works, but when I roll back to the old version of extension it still does not work. So my understanding is that 1.70 broke some API that Dart uses to fold the code (since folding is handled by the Dart engine).
bjhandeland
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from posterIssue requires more information from poster