Skip to content

Code Actions Menu is not properly ordered #3646

Closed

Description

@larsb24

Describe the bug
The order of the Code Actions Menu should (and did until about a month ago) display "Wrap with Widget" as the first option, but for some time it sorts alphabetically as of recently.

To Reproduce
Ctrl + .

Expected behavior
As described in the description, the "Wrap with Widget" option should be first in the list, but instead it sorts alphabetically

Screenshots
image

Versions (please complete the following information):

  • VS Code version: 1.61.2
  • Dart extension version: 3.28.0
  • Dart/Flutter SDK version: 2.6.0 (master)

Activity

  1. PollyGlot commented on Nov 2, 2021

    @PollyGlot

    Personally, I'd make a submenu for everything with "Wrap with [widget_name]" leaving "Wrap with widget..." on top and independent. This way the list won't look so long.

  2. DanTup commented on Nov 2, 2021

    @DanTup
    Member

    Personally, I'd make a submenu for everything with "Wrap with [widget_name]" leaving "Wrap with widget..." on top and independent

    Unfortunately VS Code doesn't give us any ability to group code actions/use sub-menus.

  3. added this to the v3.29.0 milestone on Nov 2, 2021
  4. added
    in editorRelates to code editing or language features
    on Nov 2, 2021
  5. larsb24 commented on Nov 5, 2021

    @larsb24
    Author

    Personally, I'd make a submenu for everything with "Wrap with [widget_name]" leaving "Wrap with widget..." on top and independent. This way the list won't look so long.

    Yes it does look wrong, that's the problem I described. I want it to be at the top as well, but it suddenly isn't any more

  6. DanTup commented on Nov 8, 2021

    @DanTup
    Member

    This has been fixed in the SDK and the fix will show up in a future SDK release. Sorry for the bother!

    dart-lang/sdk@00ca328

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 bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions