Skip to content

Commit 14a5323

Browse files
angelozerrfbricon
authored andcommitted
Java Language server contributions to package.json
This PR provide a JSON schema for JDT 'contribute/javaExtensions' property. It gives the capability to have completion, hover, validation for this property inside package.json. Signed-off-by: azerr <azerr@redhat.com>
1 parent 4a9389e commit 14a5323

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
"path": "./snippets/java.json"
5050
}
5151
],
52+
"jsonValidation": [
53+
{
54+
"fileMatch": "package.json",
55+
"url": "./schemas/package.schema.json"
56+
}
57+
],
5258
"configuration": {
5359
"type": "object",
5460
"title": "Java configuration",

schemas/package.schema.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Java Language server contributions to package.json",
4+
"type": "object",
5+
"properties": {
6+
"contributes": {
7+
"type": "object",
8+
"properties": {
9+
"javaExtensions": {
10+
"type": "array",
11+
"markdownDescription": "Java language server extensions",
12+
"items": {
13+
"type": "string",
14+
"description": "Relative path to a Java language server extension JAR file"
15+
}
16+
}
17+
}
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)