|
445 | 445 | } |
446 | 446 | ], |
447 | 447 | "taskDefinitions": [ |
| 448 | + { |
| 449 | + "type": "ada", |
| 450 | + "required": [ |
| 451 | + "configuration" |
| 452 | + ], |
| 453 | + "properties": { |
| 454 | + "configuration": { |
| 455 | + "type": "object", |
| 456 | + "required": [ |
| 457 | + "kind", |
| 458 | + "projectFile" |
| 459 | + ], |
| 460 | + "properties": { |
| 461 | + "kind": { |
| 462 | + "type": "string", |
| 463 | + "description": "Kind of Ada task", |
| 464 | + "enum": [ |
| 465 | + "buildProject", |
| 466 | + "checkFile", |
| 467 | + "cleanProject", |
| 468 | + "buildMain", |
| 469 | + "buildAndRunMain" |
| 470 | + ] |
| 471 | + }, |
| 472 | + "projectFile": { |
| 473 | + "type": "string", |
| 474 | + "description": "Path to GPR project file", |
| 475 | + "default": "${config:ada.projectFile}" |
| 476 | + }, |
| 477 | + "args": { |
| 478 | + "type": "array", |
| 479 | + "description": "Extra command line arguments" |
| 480 | + } |
| 481 | + }, |
| 482 | + "oneOf": [ |
| 483 | + { |
| 484 | + "$comment": "Each oneOf is evaluated regardless of the parent schema. That's why valid properties of the parent must be repeated here in order to be allowed.", |
| 485 | + "properties": { |
| 486 | + "kind": { |
| 487 | + "enum": [ |
| 488 | + "buildProject", |
| 489 | + "checkFile", |
| 490 | + "cleanProject" |
| 491 | + ] |
| 492 | + }, |
| 493 | + "projectFile": true, |
| 494 | + "args": true |
| 495 | + }, |
| 496 | + "additionalProperties": false |
| 497 | + }, |
| 498 | + { |
| 499 | + "required": [ |
| 500 | + "main" |
| 501 | + ], |
| 502 | + "$comment": "Each oneOf is evaluated regardless of the parent schema. That's why valid properties of the parent must be repeated here in order to be allowed.", |
| 503 | + "properties": { |
| 504 | + "kind": { |
| 505 | + "enum": [ |
| 506 | + "buildMain" |
| 507 | + ] |
| 508 | + }, |
| 509 | + "projectFile": true, |
| 510 | + "args": true, |
| 511 | + "main": { |
| 512 | + "type": "string", |
| 513 | + "description": "Path to main source file" |
| 514 | + } |
| 515 | + }, |
| 516 | + "additionalProperties": false |
| 517 | + }, |
| 518 | + { |
| 519 | + "required": [ |
| 520 | + "main" |
| 521 | + ], |
| 522 | + "$comment": "Each oneOf is evaluated regardless of the parent schema. That's why valid properties of the parent must be repeated here in order to be allowed.", |
| 523 | + "properties": { |
| 524 | + "kind": { |
| 525 | + "enum": [ |
| 526 | + "buildAndRunMain" |
| 527 | + ] |
| 528 | + }, |
| 529 | + "projectFile": true, |
| 530 | + "args": true, |
| 531 | + "main": { |
| 532 | + "type": "string", |
| 533 | + "description": "Path to main source file" |
| 534 | + }, |
| 535 | + "executable": { |
| 536 | + "type": "string", |
| 537 | + "description": "Path to main executable file (if it cannot be computed automatically)" |
| 538 | + } |
| 539 | + }, |
| 540 | + "additionalProperties": false |
| 541 | + } |
| 542 | + ] |
| 543 | + } |
| 544 | + } |
| 545 | + }, |
| 546 | + { |
| 547 | + "type": "spark", |
| 548 | + "properties": { |
| 549 | + "configuration": { |
| 550 | + "type": "object", |
| 551 | + "required": [ |
| 552 | + "kind", |
| 553 | + "projectFile" |
| 554 | + ], |
| 555 | + "properties": { |
| 556 | + "kind": { |
| 557 | + "description": "Kind of SPARK task", |
| 558 | + "enum": [ |
| 559 | + "cleanProjectForProof", |
| 560 | + "examineProject", |
| 561 | + "examineFile", |
| 562 | + "examineSubprogram", |
| 563 | + "proveProject", |
| 564 | + "proveFile", |
| 565 | + "proveSubprogram", |
| 566 | + "proveRegion", |
| 567 | + "proveLine" |
| 568 | + ] |
| 569 | + }, |
| 570 | + "projectFile": { |
| 571 | + "type": "string", |
| 572 | + "description": "Path to GPR project file", |
| 573 | + "default": "${config:ada.projectFile}" |
| 574 | + }, |
| 575 | + "args": { |
| 576 | + "type": "array", |
| 577 | + "description": "Extra command line arguments" |
| 578 | + } |
| 579 | + }, |
| 580 | + "additionalProperties": false |
| 581 | + } |
| 582 | + } |
| 583 | + }, |
448 | 584 | { |
449 | 585 | "type": "gnat", |
450 | 586 | "required": [ |
|
453 | 589 | "properties": { |
454 | 590 | "taskKind": { |
455 | 591 | "type": "string", |
456 | | - "description": "Tool and action kind" |
| 592 | + "description": "Tool and action kind", |
| 593 | + "deprecationMessage": "The task type \"gnat\" is deprecated. Use task type \"ada\" or \"spark\" instead." |
457 | 594 | }, |
458 | 595 | "args": { |
459 | 596 | "type": "array", |
460 | | - "description": "Extra command arguments" |
| 597 | + "description": "Extra command line arguments", |
| 598 | + "deprecationMessage": "The task type \"gnat\" is deprecated. Use task type \"ada\" or \"spark\" instead." |
461 | 599 | } |
462 | 600 | } |
463 | 601 | }, |
|
469 | 607 | "properties": { |
470 | 608 | "projectFile": { |
471 | 609 | "type": "string", |
472 | | - "description": "The project file" |
| 610 | + "description": "The project file", |
| 611 | + "deprecationMessage": "The task type \"gpr\" is deprecated. Use task type \"ada\" instead." |
473 | 612 | }, |
474 | 613 | "main": { |
475 | 614 | "type": "string", |
476 | | - "description": "The main file targeted" |
| 615 | + "description": "The main file targeted", |
| 616 | + "deprecationMessage": "The task type \"gpr\" is deprecated. Use task type \"ada\" instead." |
477 | 617 | }, |
478 | 618 | "executable": { |
479 | 619 | "type": "string", |
480 | | - "description": "The related executable" |
| 620 | + "description": "The related executable", |
| 621 | + "deprecationMessage": "The task type \"gpr\" is deprecated. Use task type \"ada\" instead." |
481 | 622 | } |
482 | 623 | } |
483 | 624 | } |
|
649 | 790 | "dependencies": { |
650 | 791 | "@types/command-exists": "1.2.0", |
651 | 792 | "command-exists": "1.2.9", |
| 793 | + "fast-xml-parser": "4.2.5", |
652 | 794 | "fp-ts": "2.12.0", |
653 | 795 | "process": "0.11.10", |
654 | 796 | "vscode-languageclient": "7.0.0", |
655 | | - "ws": "8.13.0", |
656 | | - "fast-xml-parser": "4.2.5" |
| 797 | + "winston": "3.10.0", |
| 798 | + "ws": "8.13.0" |
657 | 799 | } |
658 | 800 | } |
0 commit comments