vscode-html-languageservice
Advanced tools
Comparing version 3.0.4-next.1 to 3.0.4-next.2
@@ -788,6 +788,2 @@ [ | ||
{ | ||
"name": "sortable", | ||
"valueSet": "v" | ||
}, | ||
{ | ||
"name": "border" | ||
@@ -794,0 +790,0 @@ } |
@@ -5,4 +5,4 @@ # Custom Data for HTML Language Service | ||
1. With setting `html.experimental.customData` | ||
2. With an extension that contributes `contributes.html.experimental.customData` | ||
1. With setting `html.customData` | ||
2. With an extension that contributes `contributes.html.customData` | ||
@@ -19,3 +19,3 @@ Both setting point to a list of JSON files. This document describes the shape of the JSON files. | ||
{ | ||
"version": 1, | ||
"version": 1.1, | ||
"tags": [], | ||
@@ -98,1 +98,24 @@ "globalAttributes": [], | ||
- Hover on `foo` will show `The foo element` | ||
### Additional properties | ||
For either `tag`, `attribute` or `attributeValue`, you can provide a `references` property of the following form | ||
```json | ||
{ | ||
"tags": [ | ||
{ | ||
"name": "foo", | ||
"description": "The foo element", | ||
"references": [ | ||
{ | ||
"name": "My foo element reference", | ||
"url": "https://www.foo.com/element/foo" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
``` | ||
It will be displayed in Markdown form in completion and hover as `[My foo element reference](https://www.foo.com/element/foo)`. |
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "vscode-html-customdata", | ||
"version": 1, | ||
"version": 1.1, | ||
"title": "VS Code HTML Custom Data format", | ||
@@ -10,2 +10,18 @@ "description": "Format for loading Custom Data in VS Code's HTML support", | ||
"definitions": { | ||
"references": { | ||
"type": "object", | ||
"required": ["name", "url"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the reference." | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "The URL of the reference.", | ||
"pattern": "https?:\/\/", | ||
"patternErrorMessage": "URL should start with http:// or https://" | ||
} | ||
} | ||
}, | ||
"markupDescription": { | ||
@@ -32,3 +48,3 @@ "type": "object", | ||
"version": { | ||
"const": 1, | ||
"const": 1.1, | ||
"description": "The custom data version", | ||
@@ -126,8 +142,29 @@ "type": "number" | ||
] | ||
}, | ||
"references": { | ||
"type": "array", | ||
"description": "A list of references for the attribute value shown in completion and hover", | ||
"items": { | ||
"$ref": "#/definitions/references" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"references": { | ||
"type": "array", | ||
"description": "A list of references for the attribute shown in completion and hover", | ||
"items": { | ||
"$ref": "#/definitions/references" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"references": { | ||
"type": "array", | ||
"description": "A list of references for the tag shown in completion and hover", | ||
"items": { | ||
"$ref": "#/definitions/references" | ||
} | ||
} | ||
@@ -134,0 +171,0 @@ } |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "3.0.4-next.1", | ||
"version": "3.0.4-next.2", | ||
"description": "Language service for HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/umd/htmlLanguageService.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1709557
35500