Skip to content

Unable to fold multiline method signatures and calls and other blocks #6089

@crtl

Description

@crtl

I have already opened the same issue #6008 previously which was reported to be fixed but in my current environment it still persists and I am using the latest Android Studio and Flutter Plugin versions.

Steps to Reproduce

Create a multiline method signature

myFn({ // I cannot hold the function including signature
  required String firstArg,
  required String secondArg,
}) {  // I can fold the contents of function body here

}

Version info

[✓] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1586], locale en-DE)
    • Flutter version 2.10.3 at C:\Users\User\fvm\versions\2.10.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (5 weeks ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android Studio (version 2021.1)
    • Android Studio at C:\Users\User\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\211.7628.21.2111.8193401
    • Flutter plugin version 66.0.1
    • Dart plugin version 211.7811
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions