Skip to content

Code actions menu is no available when the cursor is inside the highlighted zone  #4462

@incendial

Description

@incendial

Describe the bug
Noticed that the code actions menu does not appear neither on the shortcut, nor via the button.
It can only be called via the diagnostic tooltip or if the cursor in on the first line (where the method signature is):

Screen.Recording.2023-03-26.at.22.00.55.mov

To Reproduce
Steps to reproduce the behavior:

  1. enable prefer_expression_function_bodies
  2. create a method with a single return statement
  3. try to call the code actions menu

Expected behavior
Code actions menu appears.

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 bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions