Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-html-languageservice

Package Overview
Dependencies
Maintainers
6
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-html-languageservice - npm Package Compare versions

Comparing version 3.0.4-next.1 to 3.0.4-next.2

4

data/htmlTags.json

@@ -788,6 +788,2 @@ [

{
"name": "sortable",
"valueSet": "v"
},
{
"name": "border"

@@ -794,0 +790,0 @@ }

29

docs/customData.md

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc