Skip to content

Prioritise completion suggestion of required fields #3758

Open
@VeryMilkyJoe

Description

@VeryMilkyJoe

Related to #3664.

When suggesting fields in the top level or in stanzas of a cabal file, it would be nice to prioritise suggestion of required fields over optional ones.
Additionally, it would be nice to label required fields as such using the details field of the CompletionItem.

  • In order to implement this, the data structure storing the keywords and their completers needs to be updated with some way of marking the required fields.
  • Then, the weightedConstantCompleter function can be used to prioritse the suggestion accordingly.
  • In order to add a label, the CompleterData probably needs to carry the information whether the suggested field is required.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions