redhat-developer / redhat-developer/vscode-yaml

Tab completion inconsistent.

Open
#835 1 comment 1 reaction 0 assignees View on GitHub

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

  1. Use an allOf for an enum value (in the screenShot 'operation' is an enum)
  2. one of the allOf has a property pattern for operation: 'Has_Artifact'.
  3. 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.

Tab Completion
Tab Completion 2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.