Skip to content

Missing keywords in code completion suggestionsΒ #57032

@bwilkerson

Description

@bwilkerson

Create a file containing the following (with the caret removed):

void f() => <String, int>{"": ^};

Place the cursor in the location of the caret and request completions. Lots of identifiers will be suggested, but none of the keywords that are valid at that location are suggested.

If you type part of a keyword and request completions at the end of the identifier

void f() => <String, int>{"": co^};

The same behavior occurs, which suggests that this isn't just a problem with recovery.

However, if you type the whole keyword

void f() => <String, int>{"": const^};

and request completions, then the keyword will be suggested.

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 featurelegacy-area-analyzerUse area-devexp instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions