vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Autocompletion by default values bug

Open murderface45 opened this issue 5 months ago • 0 comments

Describe the bug

Hello! II have two JSON schemas with the same attributes but different structures. In both schemas, a default value is set for the domain attribute. When using autocompletion, the default value for the domain attribute is not automatically inserted from schema1.json, but it is inserted from schema2.json.

schema1.json schema2.json

Expected Behavior

Default values for all attributes are inserted automatically.

Current Behavior

Default values from the JSON schema are not being inserted automatically.

Steps to Reproduce

  1. Open empty .yml file
  2. Press ctrl + space
  3. Select object
  4. Press enter

Environment

  • [X] Windows
  • [ ] Mac
  • [ ] Linux
  • [ ] other (please specify)

murderface45 avatar May 16 '25 07:05 murderface45