Demonstrates Custom HTML/CSS data support for VS Code.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Part of Microsoft/vscode#67608 Jan 31, 2019
README.md README Jan 31, 2019
css.json
html.json
test.css Init Jan 29, 2019
test.html Init Jan 29, 2019

README.md

Custom Data for HTML/CSS support in VS Code

This demonstrates Custom HTML/CSS data support for VS Code.

See https://code.visualstudio.com/updates/v1_31 for details.

Usage

  • Open this folder in VS Code 1.31+
  • Try completion/hover in the test.html and test.css
  • Edit data in html.json and css.json and reload to update the custom data

Docs

Settings

This setting checks the custom data against latest schema:

{
  "json.schemas": [
    {
      "fileMatch": ["/html.json"],
      "url": "https://raw.githubusercontent.com/Microsoft/vscode-html-languageservice/master/docs/customData.schema.json"
    },
    {
      "fileMatch": ["/css.json"],
      "url": "https://raw.githubusercontent.com/Microsoft/vscode-css-languageservice/master/docs/customData.schema.json"
    }
  ]
}

Related

See a real-world example at https://github.com/octref/svg-data.

License

MIT