|
173 | 173 | }
|
174 | 174 | },
|
175 | 175 | "adapter": {
|
176 |
| - "oneOf": [ |
| 176 | + "allOf": [ |
| 177 | + { "type": "object" }, |
| 178 | + { "$ref": "#/definitions/variables" }, |
177 | 179 | {
|
178 |
| - "allOf": [ |
179 |
| - { "type": "object" }, |
180 |
| - { "$ref": "#/definitions/variables" }, |
181 |
| - { |
182 |
| - "properties": { |
183 |
| - "name": { |
184 |
| - "type": "string", |
185 |
| - "description": "Passed to the adapter in the initialization request. Some adapters are particularly picky about what value goes here. Usually it can be omitted and Vimspector will send a generic value" |
186 |
| - }, |
187 |
| - "configuration": { |
188 |
| - "type": "object", |
189 |
| - "description": "Base debug configuration. Can be used to set default values for all debug configurations. When reading individual debug configurations from 'configurations', those configurations are merged with this object. Definitions in the debug configuration override anything in this object. Typical usage for this is to set the 'type' parameter, which some debug adapters are very picky about, or to set e.g. the path to an underlying debugger." |
190 |
| - } |
191 |
| - } |
192 |
| - }, |
193 |
| - { "$ref": "#/definitions/adapter-launchattach" }, |
194 |
| - { |
195 |
| - "anyOf": [ |
196 |
| - { "required": [ "command" ] }, |
197 |
| - { "required": [ "port" ] }, |
198 |
| - { "required": [ "command", "port" ] } |
199 |
| - ] |
| 180 | + "properties": { |
| 181 | + "name": { |
| 182 | + "type": "string", |
| 183 | + "description": "Passed to the adapter in the initialization request. Some adapters are particularly picky about what value goes here. Usually it can be omitted and Vimspector will send a generic value" |
200 | 184 | },
|
| 185 | + "configuration": { |
| 186 | + "type": "object", |
| 187 | + "description": "Base debug configuration. Can be used to set default values for all debug configurations. When reading individual debug configurations from 'configurations', those configurations are merged with this object. Definitions in the debug configuration override anything in this object. Typical usage for this is to set the 'type' parameter, which some debug adapters are very picky about, or to set e.g. the path to an underlying debugger." |
| 188 | + } |
| 189 | + } |
| 190 | + }, |
| 191 | + { "$ref": "#/definitions/adapter-launchattach" }, |
| 192 | + { |
| 193 | + "anyOf": [ |
| 194 | + { "required": [ "command" ] }, |
| 195 | + { "required": [ "port" ] }, |
201 | 196 | {
|
| 197 | + "required": [ "command", "port" ], |
202 | 198 | "properties": {
|
203 |
| - "host": { |
204 |
| - "type": "string", |
205 |
| - "default": "127.0.0.1", |
206 |
| - "description": "Connect to this host in multi-session mode" |
207 |
| - }, |
208 |
| - "port": { |
209 |
| - "oneOf": [ |
210 |
| - { "type": "string" }, |
211 |
| - { "type": "integer" } |
212 |
| - ], |
213 |
| - "description": "If supplied, indicates that a socket connection should be made to this port on 'host'. If the value is 'ask', then the user is asked to enter the port number to connect to." |
| 199 | + "tty": { |
| 200 | + "type": "boolean", |
| 201 | + "description": "Set to True to launch 'command' in a terminal. Only valid when both 'command' and 'port' are supplied." |
214 | 202 | }
|
215 | 203 | }
|
216 |
| - } |
| 204 | + }, |
| 205 | + { "required": [ "extends" ] } |
217 | 206 | ]
|
218 | 207 | },
|
219 | 208 | {
|
220 |
| - "type": "object", |
221 |
| - "required": [ "extends" ], |
222 | 209 | "properties": {
|
223 |
| - "extends": { "type": "string" } |
| 210 | + "host": { |
| 211 | + "type": "string", |
| 212 | + "default": "127.0.0.1", |
| 213 | + "description": "Connect to this host in multi-session mode" |
| 214 | + }, |
| 215 | + "port": { |
| 216 | + "oneOf": [ |
| 217 | + { "type": "string" }, |
| 218 | + { "type": "integer" } |
| 219 | + ], |
| 220 | + "description": "If supplied, indicates that a socket connection should be made to this port on 'host'. If the value is 'ask', then the user is asked to enter the port number to connect to." |
| 221 | + }, |
| 222 | + "extends": { |
| 223 | + "type": "string", |
| 224 | + "description": "Name of another adapter from which to inherit all properties" |
| 225 | + } |
224 | 226 | }
|
225 | 227 | }
|
226 | 228 | ]
|
|
236 | 238 | "configurations": {
|
237 | 239 | "type": "object",
|
238 | 240 | "additionalProperties": {
|
239 |
| - "oneOf": [ |
| 241 | + "allOf": [ |
| 242 | + { "$ref": "#/definitions/variables" }, |
| 243 | + { |
| 244 | + "oneOf": [ |
| 245 | + { "required": [ "adapter", "configuration" ] }, |
| 246 | + { "required": [ "extends" ] } |
| 247 | + ] |
| 248 | + }, |
240 | 249 | {
|
241 |
| - "allOf": [ |
242 |
| - { "$ref": "#/definitions/variables" }, |
243 |
| - { |
| 250 | + "type": "object", |
| 251 | + "properties": { |
| 252 | + "adapter": { |
| 253 | + "description": "Adapter configuration to use for this debug session", |
| 254 | + "oneOf": [ |
| 255 | + { "$ref": "#/definitions/adapter" }, |
| 256 | + { |
| 257 | + "type": "string", |
| 258 | + "description": "Name of an adapter in the 'adapters' mapping" |
| 259 | + } |
| 260 | + ] |
| 261 | + }, |
| 262 | + "extends": { |
| 263 | + "type": "string", |
| 264 | + "description": "Name of another configuration to inherit properties from." |
| 265 | + }, |
| 266 | + "remote-request": { |
| 267 | + "enum": [ "launch", "attach" ], |
| 268 | + "description": "When the 'remote' block is defined in the adapter configuration, this can be used to override the actual action taken (remotely). Usually the actual 'configuration' will contain 'request' of 'attach', but in order to remotely 'launch' the process (e.g. under gdbserver or equivalent), use remote-attach set to 'launch'" |
| 269 | + }, |
| 270 | + "remote-cmdLine": { |
| 271 | + "type": [ "string", "array" ], |
| 272 | + "description": "Defines the value of the special token %CMD% in remote-launch 'runCommand(s)'. The value is inserted into the command line where an entry matching '%CMD%' is found in 'runCommand(s)' command array." |
| 273 | + }, |
| 274 | + "default": { |
| 275 | + "type": "boolean", |
| 276 | + "description": "When true, this configuration is picked by default" |
| 277 | + }, |
| 278 | + "autoselect": { |
| 279 | + "type": "boolean", |
| 280 | + "description": "When false, this configuration is _never_ picked by default" |
| 281 | + }, |
| 282 | + "filetypes": { |
| 283 | + "type": "array", |
| 284 | + "description": "List of Vim filetypes that this configuration applies to. The configuraiton is only used if one of the current filetypes appears in this list, or if this list is not supplied," |
| 285 | + }, |
| 286 | + "configuration": { |
244 | 287 | "type": "object",
|
| 288 | + "required": [ "request" ], |
245 | 289 | "properties": {
|
246 |
| - "adapter": { |
247 |
| - "description": "Adapter configuration to use for this debug session", |
248 |
| - "oneOf": [ |
249 |
| - { "$ref": "#/definitions/adapter" }, |
250 |
| - { |
251 |
| - "type": "string", |
252 |
| - "description": "Name of an adapter in the 'adapters' mapping" |
253 |
| - } |
254 |
| - ] |
255 |
| - }, |
256 |
| - "remote-request": { |
| 290 | + "request": { |
257 | 291 | "enum": [ "launch", "attach" ],
|
258 |
| - "description": "When the 'remote' block is defined in the adapter configuration, this can be used to override the actual action taken (remotely). Usually the actual 'configuration' will contain 'request' of 'attach', but in order to remotely 'launch' the process (e.g. under gdbserver or equivalent), use remote-attach set to 'launch'" |
259 |
| - }, |
260 |
| - "remote-cmdLine": { |
261 |
| - "type": [ "string", "array" ], |
262 |
| - "description": "Defines the value of the special token %CMD% in remote-launch 'runCommand(s)'. The value is inserted into the command line where an entry matching '%CMD%' is found in 'runCommand(s)' command array." |
263 |
| - }, |
264 |
| - "default": { |
265 |
| - "type": "boolean", |
266 |
| - "description": "When true, this configuration is picked by default" |
267 |
| - }, |
268 |
| - "autoselect": { |
269 |
| - "type": "boolean", |
270 |
| - "description": "When false, this configuration is _never_ picked by default" |
271 |
| - }, |
272 |
| - "filetypes": { |
273 |
| - "type": "array", |
274 |
| - "description": "List of Vim filetypes that this configuration applies to. The configuraiton is only used if one of the current filetypes appears in this list, or if this list is not supplied," |
275 |
| - }, |
276 |
| - "configuration": { |
| 292 | + "description": "Type of session - launch process or attach to process" |
| 293 | + } |
| 294 | + }, |
| 295 | + "additionalProperties": { |
| 296 | + "description": "Additional properties are passed to the debug adapter in the 'launch' or 'attach' request and are specific to the debug adapter." |
| 297 | + } |
| 298 | + }, |
| 299 | + "breakpoints": { |
| 300 | + "type": "object", |
| 301 | + "properties": { |
| 302 | + "exception": { |
277 | 303 | "type": "object",
|
278 |
| - "required": [ "request" ], |
279 |
| - "properties": { |
280 |
| - "request": { |
281 |
| - "enum": [ "launch", "attach" ], |
282 |
| - "description": "Type of session - launch process or attach to process" |
283 |
| - } |
284 |
| - }, |
| 304 | + "description": "Exception breakpoints configuration, mapping the server's exception filter to enabled/disable/default flag", |
285 | 305 | "additionalProperties": {
|
286 |
| - "description": "Additional properties are passed to the debug adapter in the 'launch' or 'attach' request and are specific to the debug adapter." |
287 |
| - } |
288 |
| - }, |
289 |
| - "breakpoints": { |
290 |
| - "type": "object", |
291 |
| - "properties": { |
292 |
| - "exception": { |
293 |
| - "type": "object", |
294 |
| - "description": "Exception breakpoints configuration, mapping the server's exception filter to enabled/disable/default flag", |
295 |
| - "additionalProperties": { |
296 |
| - "oneOf": [ |
297 |
| - { |
298 |
| - "type": "boolean", |
299 |
| - "description": "true = enable, false = disable" |
300 |
| - }, |
301 |
| - { |
302 |
| - "type": "string", |
303 |
| - "enum": [ "Y", "N", "" ], |
304 |
| - "description": "Y = enable, N = disable, '' = default" |
305 |
| - } |
306 |
| - ] |
| 306 | + "oneOf": [ |
| 307 | + { |
| 308 | + "type": "boolean", |
| 309 | + "description": "true = enable, false = disable" |
| 310 | + }, |
| 311 | + { |
| 312 | + "type": "string", |
| 313 | + "enum": [ "Y", "N", "" ], |
| 314 | + "description": "Y = enable, N = disable, '' = default" |
307 | 315 | }
|
308 |
| - } |
| 316 | + ] |
309 | 317 | }
|
310 | 318 | }
|
311 | 319 | }
|
312 | 320 | }
|
313 |
| - ] |
314 |
| - }, |
315 |
| - { |
316 |
| - "type": "object", |
317 |
| - "required": [ "extends" ], |
318 |
| - "properties": { |
319 |
| - "extends": { |
320 |
| - "type": "string" |
321 |
| - } |
322 | 321 | }
|
323 | 322 | }
|
324 | 323 | ]
|
|
0 commit comments