I don't get auto complete suggestions for the grade field inside snapcraft.yaml.
Steps To Reproduce:
- Create or edit a valid snapcraft.yaml file
- Add or go the grade field, type to trigger auto complete
- Expected values should be stable, devel
- 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
I don't get auto complete suggestions for the grade field inside snapcraft.yaml.
Steps To Reproduce:
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