|
182 | 182 | ] |
183 | 183 | }, |
184 | 184 | "DiagnosticSeveritySetting": { |
185 | | - "type": "string", |
186 | | - "enum": [ |
187 | | - "error", |
188 | | - "warning", |
189 | | - "information", |
190 | | - "hint" |
| 185 | + "oneOf": [ |
| 186 | + { |
| 187 | + "description": "Represents an error diagnostic severity.", |
| 188 | + "type": "string", |
| 189 | + "enum": [ |
| 190 | + "error" |
| 191 | + ] |
| 192 | + }, |
| 193 | + { |
| 194 | + "description": "Represents a warning diagnostic severity.", |
| 195 | + "type": "string", |
| 196 | + "enum": [ |
| 197 | + "warning" |
| 198 | + ] |
| 199 | + }, |
| 200 | + { |
| 201 | + "description": "Represents an information diagnostic severity.", |
| 202 | + "type": "string", |
| 203 | + "enum": [ |
| 204 | + "information" |
| 205 | + ] |
| 206 | + }, |
| 207 | + { |
| 208 | + "description": "Represents a hint diagnostic severity.", |
| 209 | + "type": "string", |
| 210 | + "enum": [ |
| 211 | + "hint" |
| 212 | + ] |
| 213 | + } |
191 | 214 | ] |
192 | 215 | }, |
193 | 216 | "EmmyrcCodeLen": { |
|
292 | 315 | } |
293 | 316 | }, |
294 | 317 | "EmmyrcFilenameConvention": { |
295 | | - "type": "string", |
296 | | - "enum": [ |
297 | | - "keep", |
298 | | - "snake-case", |
299 | | - "pascal-case", |
300 | | - "camel-case" |
| 318 | + "oneOf": [ |
| 319 | + { |
| 320 | + "description": "Keep the original filename.", |
| 321 | + "type": "string", |
| 322 | + "enum": [ |
| 323 | + "keep" |
| 324 | + ] |
| 325 | + }, |
| 326 | + { |
| 327 | + "description": "Convert the filename to snake_case.", |
| 328 | + "type": "string", |
| 329 | + "enum": [ |
| 330 | + "snake-case" |
| 331 | + ] |
| 332 | + }, |
| 333 | + { |
| 334 | + "description": "Convert the filename to PascalCase.", |
| 335 | + "type": "string", |
| 336 | + "enum": [ |
| 337 | + "pascal-case" |
| 338 | + ] |
| 339 | + }, |
| 340 | + { |
| 341 | + "description": "Convert the filename to camelCase.", |
| 342 | + "type": "string", |
| 343 | + "enum": [ |
| 344 | + "camel-case" |
| 345 | + ] |
| 346 | + } |
301 | 347 | ] |
302 | 348 | }, |
303 | 349 | "EmmyrcHover": { |
304 | 350 | "type": "object", |
305 | 351 | "properties": { |
306 | 352 | "enable": { |
| 353 | + "description": "Whether to enable hover.", |
307 | 354 | "default": true, |
308 | 355 | "type": "boolean" |
309 | 356 | } |
|
313 | 360 | "type": "object", |
314 | 361 | "properties": { |
315 | 362 | "enable": { |
| 363 | + "description": "Whether to enable inlay hints.", |
316 | 364 | "default": true, |
317 | 365 | "type": "boolean" |
318 | 366 | }, |
319 | 367 | "indexHint": { |
| 368 | + "description": "Whether to enable index hints.", |
320 | 369 | "default": true, |
321 | 370 | "type": "boolean" |
322 | 371 | }, |
323 | 372 | "localHint": { |
| 373 | + "description": "Whether to enable local hints. Whether to enable override hints.", |
324 | 374 | "default": true, |
325 | 375 | "type": "boolean" |
326 | 376 | }, |
327 | 377 | "overrideHint": { |
| 378 | + "description": "Whether to enable override hints.", |
328 | 379 | "default": true, |
329 | 380 | "type": "boolean" |
330 | 381 | }, |
331 | 382 | "paramHint": { |
| 383 | + "description": "Whether to enable parameter hints.", |
332 | 384 | "default": true, |
333 | 385 | "type": "boolean" |
334 | 386 | } |
335 | 387 | } |
336 | 388 | }, |
337 | 389 | "EmmyrcLuaVersion": { |
338 | | - "type": "string", |
339 | | - "enum": [ |
340 | | - "Lua5.1", |
341 | | - "LuaJIT", |
342 | | - "Lua5.2", |
343 | | - "Lua5.3", |
344 | | - "Lua5.4", |
345 | | - "LuaLatest" |
| 390 | + "oneOf": [ |
| 391 | + { |
| 392 | + "description": "Lua 5.1", |
| 393 | + "type": "string", |
| 394 | + "enum": [ |
| 395 | + "Lua5.1" |
| 396 | + ] |
| 397 | + }, |
| 398 | + { |
| 399 | + "description": "LuaJIT", |
| 400 | + "type": "string", |
| 401 | + "enum": [ |
| 402 | + "LuaJIT" |
| 403 | + ] |
| 404 | + }, |
| 405 | + { |
| 406 | + "description": "Lua 5.2", |
| 407 | + "type": "string", |
| 408 | + "enum": [ |
| 409 | + "Lua5.2" |
| 410 | + ] |
| 411 | + }, |
| 412 | + { |
| 413 | + "description": "Lua 5.3", |
| 414 | + "type": "string", |
| 415 | + "enum": [ |
| 416 | + "Lua5.3" |
| 417 | + ] |
| 418 | + }, |
| 419 | + { |
| 420 | + "description": "Lua 5.4", |
| 421 | + "type": "string", |
| 422 | + "enum": [ |
| 423 | + "Lua5.4" |
| 424 | + ] |
| 425 | + }, |
| 426 | + { |
| 427 | + "description": "Lua 5.4", |
| 428 | + "type": "string", |
| 429 | + "enum": [ |
| 430 | + "LuaLatest" |
| 431 | + ] |
| 432 | + } |
346 | 433 | ] |
347 | 434 | }, |
348 | 435 | "EmmyrcReference": { |
|
376 | 463 | "type": "object", |
377 | 464 | "properties": { |
378 | 465 | "extensions": { |
| 466 | + "description": "file Extensions. eg: .lua, .lua.txt", |
379 | 467 | "default": [], |
380 | 468 | "type": "array", |
381 | 469 | "items": { |
382 | 470 | "type": "string" |
383 | 471 | } |
384 | 472 | }, |
385 | 473 | "frameworkVersions": { |
| 474 | + "description": "Framework versions.", |
386 | 475 | "default": [], |
387 | 476 | "type": "array", |
388 | 477 | "items": { |
389 | 478 | "type": "string" |
390 | 479 | } |
391 | 480 | }, |
392 | 481 | "requireLikeFunction": { |
| 482 | + "description": "Functions that like require.", |
393 | 483 | "default": [], |
394 | 484 | "type": "array", |
395 | 485 | "items": { |
396 | 486 | "type": "string" |
397 | 487 | } |
398 | 488 | }, |
399 | 489 | "requirePattern": { |
| 490 | + "description": "Require pattern. eg. \"?.lua\", \"?/init.lua\"", |
400 | 491 | "default": [], |
401 | 492 | "type": "array", |
402 | 493 | "items": { |
403 | 494 | "type": "string" |
404 | 495 | } |
405 | 496 | }, |
406 | 497 | "version": { |
| 498 | + "description": "Lua version.", |
407 | 499 | "default": "LuaLatest", |
408 | 500 | "allOf": [ |
409 | 501 | { |
|
451 | 543 | "type": "object", |
452 | 544 | "properties": { |
453 | 545 | "encoding": { |
| 546 | + "description": "Encoding. eg: \"utf-8\"", |
454 | 547 | "default": "utf-8", |
455 | 548 | "type": "string" |
456 | 549 | }, |
457 | 550 | "ignoreDir": { |
| 551 | + "description": "Ignore directories.", |
458 | 552 | "default": [], |
459 | 553 | "type": "array", |
460 | 554 | "items": { |
461 | 555 | "type": "string" |
462 | 556 | } |
463 | 557 | }, |
464 | 558 | "ignoreGlobs": { |
| 559 | + "description": "Ignore globs. eg: [\"**/*.lua\"]", |
465 | 560 | "default": [], |
466 | 561 | "type": "array", |
467 | 562 | "items": { |
468 | 563 | "type": "string" |
469 | 564 | } |
470 | 565 | }, |
471 | 566 | "library": { |
| 567 | + "description": "Library paths. eg: \"/usr/local/share/lua/5.1\"", |
472 | 568 | "default": [], |
473 | 569 | "type": "array", |
474 | 570 | "items": { |
|
481 | 577 | "format": "int32" |
482 | 578 | }, |
483 | 579 | "workspaceRoots": { |
| 580 | + "description": "Workspace roots. eg: [\"src\", \"test\"]", |
484 | 581 | "default": [], |
485 | 582 | "type": "array", |
486 | 583 | "items": { |
|
0 commit comments