Skip to content

Commit 91bac95

Browse files
ya7010yassun7010
andauthored
fix: update Tombi JSON schema (SchemaStore#4700)
Co-authored-by: yassun7010 <[email protected]>
1 parent bbfad98 commit 91bac95

File tree

1 file changed

+77
-15
lines changed

1 file changed

+77
-15
lines changed

src/schemas/json/tombi.json

Lines changed: 77 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,29 @@
5858
}
5959
]
6060
},
61-
"server": {
62-
"title": "Language server options.",
61+
"lsp": {
62+
"title": "Language Server Protocol options.",
6363
"anyOf": [
6464
{
65-
"$ref": "#/definitions/ServerOptions"
65+
"$ref": "#/definitions/LspOptions"
6666
},
6767
{
6868
"type": "null"
6969
}
7070
]
7171
},
72+
"server": {
73+
"title": "Deprecated. Use `lsp` instead.",
74+
"anyOf": [
75+
{
76+
"$ref": "#/definitions/LspOptions"
77+
},
78+
{
79+
"type": "null"
80+
}
81+
],
82+
"deprecated": true
83+
},
7284
"schema": {
7385
"title": "Schema options.",
7486
"anyOf": [
@@ -89,7 +101,7 @@
89101
}
90102
},
91103
"additionalProperties": false,
92-
"x-tombi-toml-version": "v1.0.0",
104+
"x-tombi-toml-version": "v1.1.0-preview",
93105
"x-tombi-table-keys-order": "schema",
94106
"definitions": {
95107
"TomlVersion": {
@@ -109,15 +121,14 @@
109121
"additionalProperties": false,
110122
"x-tombi-table-keys-order": "schema"
111123
},
112-
"ServerOptions": {
113-
"title": "Language Server options.",
124+
"LspOptions": {
114125
"type": "object",
115126
"properties": {
116127
"hover": {
117128
"title": "Hover Feature options.",
118129
"anyOf": [
119130
{
120-
"$ref": "#/definitions/ServerHover"
131+
"$ref": "#/definitions/LspHover"
121132
},
122133
{
123134
"type": "null"
@@ -128,7 +139,7 @@
128139
"title": "Completion Feature options.",
129140
"anyOf": [
130141
{
131-
"$ref": "#/definitions/ServerCompletion"
142+
"$ref": "#/definitions/LspCompletion"
132143
},
133144
{
134145
"type": "null"
@@ -139,7 +150,7 @@
139150
"title": "Formatting Feature options.",
140151
"anyOf": [
141152
{
142-
"$ref": "#/definitions/ServerFormatting"
153+
"$ref": "#/definitions/LspFormatting"
143154
},
144155
{
145156
"type": "null"
@@ -150,7 +161,40 @@
150161
"title": "Diagnostics Feature options.",
151162
"anyOf": [
152163
{
153-
"$ref": "#/definitions/ServerDiagnostics"
164+
"$ref": "#/definitions/LspDiagnostics"
165+
},
166+
{
167+
"type": "null"
168+
}
169+
]
170+
},
171+
"goto-declaration": {
172+
"title": "Goto Declaration Feature options.",
173+
"anyOf": [
174+
{
175+
"$ref": "#/definitions/LspGotoDefinition"
176+
},
177+
{
178+
"type": "null"
179+
}
180+
]
181+
},
182+
"goto-definition": {
183+
"title": "Goto Definition Feature options.",
184+
"anyOf": [
185+
{
186+
"$ref": "#/definitions/LspGotoDefinition"
187+
},
188+
{
189+
"type": "null"
190+
}
191+
]
192+
},
193+
"goto-type-definition": {
194+
"title": "Goto Type Definition Feature options.",
195+
"anyOf": [
196+
{
197+
"$ref": "#/definitions/LspGotoDefinition"
154198
},
155199
{
156200
"type": "null"
@@ -161,7 +205,7 @@
161205
"additionalProperties": false,
162206
"x-tombi-table-keys-order": "schema"
163207
},
164-
"ServerHover": {
208+
"LspHover": {
165209
"type": "object",
166210
"properties": {
167211
"enabled": {
@@ -183,12 +227,12 @@
183227
"type": "boolean",
184228
"default": true
185229
},
186-
"ServerCompletion": {
230+
"LspCompletion": {
187231
"type": "object",
188232
"properties": {
189233
"enabled": {
190234
"title": "Enable completion feature.",
191-
"description": "Whether to enable completion.\n\n **WARNING**: 🚧 This feature is experimental 🚧",
235+
"description": "Whether to enable completion.",
192236
"anyOf": [
193237
{
194238
"$ref": "#/definitions/BoolDefaultTrue"
@@ -201,7 +245,7 @@
201245
},
202246
"additionalProperties": false
203247
},
204-
"ServerFormatting": {
248+
"LspFormatting": {
205249
"type": "object",
206250
"properties": {
207251
"enabled": {
@@ -219,7 +263,7 @@
219263
},
220264
"additionalProperties": false
221265
},
222-
"ServerDiagnostics": {
266+
"LspDiagnostics": {
223267
"type": "object",
224268
"properties": {
225269
"enabled": {
@@ -237,6 +281,24 @@
237281
},
238282
"additionalProperties": false
239283
},
284+
"LspGotoDefinition": {
285+
"type": "object",
286+
"properties": {
287+
"enabled": {
288+
"title": "Enable goto definition feature.",
289+
"description": "Whether to enable goto definition.",
290+
"anyOf": [
291+
{
292+
"$ref": "#/definitions/BoolDefaultTrue"
293+
},
294+
{
295+
"type": "null"
296+
}
297+
]
298+
}
299+
},
300+
"additionalProperties": false
301+
},
240302
"SchemaOptions": {
241303
"type": "object",
242304
"properties": {

0 commit comments

Comments
 (0)