Skip to content

No completion for type names after required #60550

@stereotype441

Description

@stereotype441

In a fresh dart file, type the following text:

void f({required S})

Place the cursor after the S and request code completions.

Expected result: code completion should offer types like Set, Stream, and String.

Observed result: the only code completion that's offered is switch, which doesn't make any sense in this context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ondevexp-completionIssues with the analysis server's code completion featuredevexp-completion-correctnessIssues with the correctness of the analysis server's code completion featuredevexp-serverIssues related to some aspect of the analysis servertype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions