redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
644 stars 218 forks source link

Tab completion inconsistent. #835

Open bobbytreed opened 1 year ago

bobbytreed commented 1 year ago

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

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

hoffa commented 1 year ago

Same here. Would be great if the suggestions appeared immediately (without having to discover ctrl + space), same as JSON autocompletion works with $schema.