Skip to content

switch expression snippet does not show after "return" #4843

@simphotonics

Description

@simphotonics

In Dart Code v3.76.1, the auto-completion menu shows the entry switch expression when defining a variable:

final String message = swi

It would be useful, if the entry switch expression is presented whenever an expression is expected.

For example in the following circumstances:

// After the symbol =>
String message() => swi

// After the keyword return
String message(){
  return swi
}

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