Skip to content

Pick up schema from $schema prop like with JSON #567

@safareli

Description

@safareli

In case of JSON files it's possible to discover the support for $schema naturally by following the Trigger Suggest command:

Screen.Recording.2021-07-26.at.3.54.50.PM.mov

Tho with YAML, even if you were to write out the comment you would see no autocompletion. To achieve same you should write out # yaml-language-server: $schema=https://json.schemastore.org/tsconfig. Which should be memoized, or stored as a snippet. or you should mess with configuration of this extension, which should be discovered in the first place and is not as portable as $schema is with json.

Screen.Recording.2021-07-26.at.3.56.49.PM.mov

Describe the solution you would like

It would be great to support similar UX to what exists with JSON. where suggestions help you discover $schema support and then by specifying $schema, schema is used to validate the file. no need to mess with extentsion configuration or comments.

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