|
58 | 58 | } |
59 | 59 | ] |
60 | 60 | }, |
61 | | - "server": { |
62 | | - "title": "Language server options.", |
| 61 | + "lsp": { |
| 62 | + "title": "Language Server Protocol options.", |
63 | 63 | "anyOf": [ |
64 | 64 | { |
65 | | - "$ref": "#/definitions/ServerOptions" |
| 65 | + "$ref": "#/definitions/LspOptions" |
66 | 66 | }, |
67 | 67 | { |
68 | 68 | "type": "null" |
69 | 69 | } |
70 | 70 | ] |
71 | 71 | }, |
| 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 | + }, |
72 | 84 | "schema": { |
73 | 85 | "title": "Schema options.", |
74 | 86 | "anyOf": [ |
|
89 | 101 | } |
90 | 102 | }, |
91 | 103 | "additionalProperties": false, |
92 | | - "x-tombi-toml-version": "v1.0.0", |
| 104 | + "x-tombi-toml-version": "v1.1.0-preview", |
93 | 105 | "x-tombi-table-keys-order": "schema", |
94 | 106 | "definitions": { |
95 | 107 | "TomlVersion": { |
|
109 | 121 | "additionalProperties": false, |
110 | 122 | "x-tombi-table-keys-order": "schema" |
111 | 123 | }, |
112 | | - "ServerOptions": { |
113 | | - "title": "Language Server options.", |
| 124 | + "LspOptions": { |
114 | 125 | "type": "object", |
115 | 126 | "properties": { |
116 | 127 | "hover": { |
117 | 128 | "title": "Hover Feature options.", |
118 | 129 | "anyOf": [ |
119 | 130 | { |
120 | | - "$ref": "#/definitions/ServerHover" |
| 131 | + "$ref": "#/definitions/LspHover" |
121 | 132 | }, |
122 | 133 | { |
123 | 134 | "type": "null" |
|
128 | 139 | "title": "Completion Feature options.", |
129 | 140 | "anyOf": [ |
130 | 141 | { |
131 | | - "$ref": "#/definitions/ServerCompletion" |
| 142 | + "$ref": "#/definitions/LspCompletion" |
132 | 143 | }, |
133 | 144 | { |
134 | 145 | "type": "null" |
|
139 | 150 | "title": "Formatting Feature options.", |
140 | 151 | "anyOf": [ |
141 | 152 | { |
142 | | - "$ref": "#/definitions/ServerFormatting" |
| 153 | + "$ref": "#/definitions/LspFormatting" |
143 | 154 | }, |
144 | 155 | { |
145 | 156 | "type": "null" |
|
150 | 161 | "title": "Diagnostics Feature options.", |
151 | 162 | "anyOf": [ |
152 | 163 | { |
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" |
154 | 198 | }, |
155 | 199 | { |
156 | 200 | "type": "null" |
|
161 | 205 | "additionalProperties": false, |
162 | 206 | "x-tombi-table-keys-order": "schema" |
163 | 207 | }, |
164 | | - "ServerHover": { |
| 208 | + "LspHover": { |
165 | 209 | "type": "object", |
166 | 210 | "properties": { |
167 | 211 | "enabled": { |
|
183 | 227 | "type": "boolean", |
184 | 228 | "default": true |
185 | 229 | }, |
186 | | - "ServerCompletion": { |
| 230 | + "LspCompletion": { |
187 | 231 | "type": "object", |
188 | 232 | "properties": { |
189 | 233 | "enabled": { |
190 | 234 | "title": "Enable completion feature.", |
191 | | - "description": "Whether to enable completion.\n\n **WARNING**: 🚧 This feature is experimental 🚧", |
| 235 | + "description": "Whether to enable completion.", |
192 | 236 | "anyOf": [ |
193 | 237 | { |
194 | 238 | "$ref": "#/definitions/BoolDefaultTrue" |
|
201 | 245 | }, |
202 | 246 | "additionalProperties": false |
203 | 247 | }, |
204 | | - "ServerFormatting": { |
| 248 | + "LspFormatting": { |
205 | 249 | "type": "object", |
206 | 250 | "properties": { |
207 | 251 | "enabled": { |
|
219 | 263 | }, |
220 | 264 | "additionalProperties": false |
221 | 265 | }, |
222 | | - "ServerDiagnostics": { |
| 266 | + "LspDiagnostics": { |
223 | 267 | "type": "object", |
224 | 268 | "properties": { |
225 | 269 | "enabled": { |
|
237 | 281 | }, |
238 | 282 | "additionalProperties": false |
239 | 283 | }, |
| 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 | + }, |
240 | 302 | "SchemaOptions": { |
241 | 303 | "type": "object", |
242 | 304 | "properties": { |
|
0 commit comments