Skip to content

Feature request: Autocomplete variants as function parameters #203

@cknitt

Description

@cknitt

(Somewhat related to #120 which is about autocompletion of variants in the case of pattern matching.)

There is another common situation where it would be nice to have autocompletion for variants:

Say I have a variant

type action =
  | A
  | B
  | C

and a dispatch function with signature action => unit.

Now if I type dispatch(, it is known that the parameter is of type action and it would be great if A, B and C could be autosuggested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions