Skip to content

Associate custom data schemes with file suffixes #67742

Closed

Description

To help custom data authors we should recommend particular file suffixes/extensions (e.g. .html-data.json) . When using these extensions they then will automatically get the schema association with the proper schema..

To support that. we add to package.json of html-language-features:

{
	"fileMatch": "*.html-data.json",
	"url": "https://raw.githubusercontent.com/Microsoft/vscode-html-languageservice/master/docs/customData.schema.json"
}

Note, it's what we do for color-themes already:
https://github.com/Microsoft/vscode/blob/555727f1c7c82d55503ff15021a83ade8ef858a0/extensions/extension-editing/package.json#L37

Activity

  1. added
    json
    on Feb 1, 2019
  2. added
    feature-request
    css-less-scss
    html
    and removed
    json
    on Feb 1, 2019
  3. aeschli commented on Feb 1, 2019

    @aeschli
    ContributorAuthor

    Alternatively, add the schema association directly to the custom data file:

    {
        "$schema": "https://raw.githubusercontent.com/Microsoft/vscode-html-languageservice/master/docs/customData.schema.json",
        "version": 1,
        "tags": [
               {
                "name": "my-button",
                "description": "My button",
  4. added this to the February 2019 milestone on Feb 1, 2019
  5. octref commented on Feb 1, 2019

    @octref
    Contributor

    Sure, let's do this when we move HTML/CSS data out of Preview state.

  6. added
    verification-needed
    on Aug 27, 2019
  7. added
    verified
    and removed
    verification-needed
    on Aug 28, 2019
  8. locked and limited conversation to collaborators on Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

css-less-scssfeature-requesthtmlverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions