forked from mattn/efm-langserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
181 lines (181 loc) · 4.6 KB
/
schema.json
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"$schema": "http://json-schema.org/draft-04/schema",
"additionalProperties": false,
"definitions": {
"command-definition": {
"description": "list of commands",
"items": {
"additionalProperties": false,
"properties": {
"arguments": {
"description": "arguments for the command",
"items": {
"type": "string"
},
"type": "array"
},
"command": {
"description": "command to execute",
"type": "string"
},
"os": {
"description": "command executable OS environment",
"type": "string"
},
"title": {
"description": "title for clients",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"tool-definition": {
"additionalProperties": false,
"description": "definition of the tool",
"properties": {
"prefix": {
"description": "prefix string to be able to see where an error comming from",
"type": "string"
},
"format-command": {
"description": "format command",
"type": "string"
},
"format-stdin": {
"description": "use stdin for the format",
"type": "boolean"
},
"hover-command": {
"description": "hover command",
"type": "string"
},
"hover-stdin": {
"description": "use stdin for the hover",
"type": "boolean"
},
"hover-type": {
"description": "hover result type",
"type": "string",
"enum": [
"markdown",
"plaintext"
]
},
"env": {
"description": "command environment variables and values",
"items": {
"type": "string",
"pattern": "^.+=.+$"
},
"type": "array"
},
"lint-command": {
"description": "lint command",
"type": "string"
},
"lint-offset-columns": {
"description": "offset value to skip columns",
"type": "number"
},
"lint-category-map": {
"description": "Map linter categories to LSP categories",
"type": "object"
},
"lint-formats": {
"description": "list of lint format",
"items": {
"type": "string"
},
"type": "array"
},
"lint-ignore-exit-code": {
"default": true,
"description": "ignore exit code of lint",
"type": "boolean"
},
"lint-offset": {
"description": "offset value to skip lines",
"type": "number"
},
"lint-stdin": {
"default": true,
"description": "use stdin for the lint",
"type": "boolean"
},
"completion-command": {
"description": "completion command",
"type": "string"
},
"completion-stdin": {
"default": true,
"description": "use stdin for the completion",
"type": "boolean"
},
"root-markers": {
"description": "markers to find root directory",
"items": {
"type": "string"
},
"type": "array"
},
"commands": {
"$ref": "#/definitions/command-definition"
}
},
"type": "object"
}
},
"properties": {
"commands": {
"$ref": "#/definitions/command-definition"
},
"languages": {
"description": "list of language",
"patternProperties": {
"^([a-z0-9_-]+)+$": {
"items": {
"$ref": "#/definitions/tool-definition"
},
"type": "array"
}
}
},
"tools": {
"description": "definition of tools",
"patternProperties": {
"^([a-z0-9_-]+)+$": {
"$ref": "#/definitions/tool-definition"
}
},
"type": "object"
},
"version": {
"description": "version of this yaml format",
"type": "number"
},
"root-markers": {
"description": "markers to find root directory",
"items": {
"type": "string"
},
"type": "array"
},
"log-file": {
"description": "path to log file",
"type": "string"
},
"log-level": {
"description": "log level",
"minimum": 1,
"type": "number"
},
"lint-debounce": {
"description": "debounce for lints",
"type": "string"
}
},
"title": "efm-langserver",
"type": "object"
}