forked from 1lck/Lithe-IDEA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage-providers.schema.json
More file actions
108 lines (108 loc) · 3.2 KB
/
Copy pathlanguage-providers.schema.json
File metadata and controls
108 lines (108 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://lithe.dev/schemas/language-providers.schema.json",
"title": "Lithe language provider catalog",
"type": "object",
"additionalProperties": false,
"required": ["version", "providers"],
"properties": {
"$schema": { "type": "string" },
"version": { "type": "integer", "minimum": 1 },
"providers": {
"type": "array",
"items": { "$ref": "#/$defs/provider" }
}
},
"$defs": {
"provider": {
"type": "object",
"additionalProperties": false,
"required": ["id"],
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
},
"displayName": { "type": "string", "minLength": 1 },
"fileExtensions": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true
},
"fileNames": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true
},
"fileNamePrefixes": {
"type": "array",
"items": { "type": "string", "minLength": 1 },
"uniqueItems": true
},
"capabilities": {
"type": "array",
"items": {
"enum": ["run", "languageServer", "debugAdapter", "formatting", "testing"]
},
"uniqueItems": true
},
"activationPolicy": { "enum": ["onDemand", "always"] },
"languageId": { "type": "string", "minLength": 1 },
"languageIdsByExtension": { "$ref": "#/$defs/stringMap" },
"languageIdsByFileName": { "$ref": "#/$defs/stringMap" },
"languageServerLaunch": { "$ref": "#/$defs/languageServerLaunch" },
"languageServerInstallation": { "$ref": "#/$defs/languageServerInstallation" },
"disabled": { "type": "boolean" }
}
},
"stringMap": {
"type": "object",
"additionalProperties": { "type": "string", "minLength": 1 }
},
"languageServerLaunch": {
"type": "object",
"additionalProperties": false,
"required": ["executableNames"],
"properties": {
"executableNames": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]*$"
},
"uniqueItems": true
},
"arguments": {
"type": "array",
"items": { "type": "string" }
},
"validationArguments": {
"type": "array",
"items": { "type": "string" }
},
"environment": { "$ref": "#/$defs/stringMap" },
"initializationOptions": {}
}
},
"languageServerInstallation": {
"type": "object",
"additionalProperties": false,
"properties": {
"homebrewFormula": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9@+._/-]*$"
},
"officialDownloadURL": {
"type": "string",
"format": "uri",
"pattern": "^https://"
}
},
"anyOf": [
{ "required": ["homebrewFormula"] },
{ "required": ["officialDownloadURL"] }
]
}
}
}