Skip to content

YAML appears to require braces for sub-field autocomplete #155

@malte-prophet

Description

@malte-prophet

When using YAML schema mode, I cannot get autocomplete suggestions to show up if I am using simple indents for object properties. It works when enclosing the object in braces { ... }, but nobody writes YAML like that.

Here, there are two top-level fields, object and object2, both with the same schema (properties propA, string, and propB, boolean. Autocomplete only with braces:

Image Image

However, validation is still performed, so the schema appears to be parsed correctly:

Image

Live example (including schema src): https://stackblitz.com/edit/stackblitz-starters-c32hfjfr?file=src%2Fmain.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions