Skip to content

Auto Completion does not work on grade field #35

Description

@Ignavar

I don't get auto complete suggestions for the grade field inside snapcraft.yaml.

Steps To Reproduce:

  1. Create or edit a valid snapcraft.yaml file
  2. Add or go the grade field, type to trigger auto complete
  3. Expected values should be stable, devel
  4. Instead i get an empty auto complete

Auto complete works correctly for other fields, for example i get correct suggestions classic, devmode and strict for the confinement field.

The issue likely happens because get_completion_items_from_path does not check inside anyOf or oneOf fields for presence of child keys hence grade which has enums wrapped in anyOf does not trigger auto complete.

Environment:

craft-ls: 0.4.2
python: 3.12.3
editor: Neovim 0.12.4
os: POP_OS 24.04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions