Skip to content

Enum completions in new context should be filtered #19968

Closed
@rochala

Description

@rochala

Compiler version

3.4.1

Minimized code

enum NewEnum:
  case Left, Right

new NewEn@@
new NewEnum.Le@@

Output

Both completions requests suggest NewEnum and allow us to compile it even if they are illegal and will result in error.

Expectation

These completions should be hidden as they are illegal in this context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SpreeSuitable for a future Spreearea:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other toolsgood first issuePerfect for someone who wants to get started contributingitype:enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions