redhat-developer / redhat-developer/vscode-yaml
Tab completion inconsistent.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
Expected Behavior
Enum tab completion works consistently without knowing any of the enum values when pressing Ctrl+Space
Current Behavior
Tab completion seems to show no values allowed unless you know the enum value. This happens for multiple enum values in my schema (regardless of depth or complexity) at multiple times.
Steps to Reproduce
- Use an allOf for an enum value (in the screenShot 'operation' is an enum)
- one of the allOf has a property pattern for operation: 'Has_Artifact'.
- The then block defines the artifact and artifactType properties with artifactType as an enum.
Environment
- Windows
- Mac
- Linux
- other (please specify)
In the first .gif you can see it's broken. However in the second one it's working and I made no changes to the schema.


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in VS Code with the described schema using allOf, a pattern-based operation enum, and a then block containing artifactType. Compare Ctrl+Space completion in the two reported cases; done means enum values appear consistently without prior knowledge of their values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100