mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
22 lines
859 B
Markdown
22 lines
859 B
Markdown
|
|
# Custom Data Sample
|
||
|
|
|
||
|
|
This demonstrates packaging [custom data](https://github.com/microsoft/vscode-custom-data) into a VS Code extension.
|
||
|
|
|
||
|
|
Guide for this sample: https://code.visualstudio.com/api/extension-guides/custom-data-extension.
|
||
|
|
|
||
|
|
## Demo
|
||
|
|
|
||
|
|

|
||
|
|
|
||
|
|
## VS Code API
|
||
|
|
|
||
|
|
### Contribution Points
|
||
|
|
|
||
|
|
- [`contributes.html.customData`](https://code.visualstudio.com/api/extension-guides/custom-data-extension)
|
||
|
|
- [`contributes.css.customData`](https://code.visualstudio.com/api/extension-guides/custom-data-extension)
|
||
|
|
|
||
|
|
## Running the Sample
|
||
|
|
|
||
|
|
- Run the `Run Extension` target in the Debug View.
|
||
|
|
- Open a HTML file. You should receive auto completion and hover information for the HTML entities defined in `html.html-data.json`.
|
||
|
|
- Open a CSS file. You should receive auto completion and hover information for the CSS entities defined in `css.css-data.json`.
|