You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration/vscode/ada/package.json
+34-8Lines changed: 34 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -482,8 +482,7 @@
482
482
"configuration": {
483
483
"type": "object",
484
484
"required": [
485
-
"kind",
486
-
"projectFile"
485
+
"kind"
487
486
],
488
487
"properties": {
489
488
"kind": {
@@ -494,7 +493,16 @@
494
493
"checkFile",
495
494
"cleanProject",
496
495
"buildMain",
496
+
"runMain",
497
497
"buildAndRunMain"
498
+
],
499
+
"enumDescriptions": [
500
+
"Build a GPR project",
501
+
"Run semantic checks on an Ada file",
502
+
"Clean a GPR project",
503
+
"Build a main program specified in a GPR project",
504
+
"Run a main program specified in a GPR project",
505
+
"Run a build task and a run task in sequence for a given main program"
498
506
]
499
507
},
500
508
"projectFile": {
@@ -554,19 +562,14 @@
554
562
"properties": {
555
563
"kind": {
556
564
"enum": [
557
-
"buildAndRunMain"
565
+
"runMain"
558
566
]
559
567
},
560
568
"projectFile": true,
561
-
"args": true,
562
569
"main": {
563
570
"type": "string",
564
571
"description": "Path to main source file"
565
572
},
566
-
"executable": {
567
-
"type": "string",
568
-
"description": "Path to main executable file (if it cannot be computed automatically)"
569
-
},
570
573
"mainArgs": {
571
574
"type": "array",
572
575
"items": {
@@ -576,6 +579,29 @@
576
579
}
577
580
},
578
581
"additionalProperties": false
582
+
},
583
+
{
584
+
"required": [
585
+
"buildTask",
586
+
"runTask"
587
+
],
588
+
"$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.",
589
+
"properties": {
590
+
"kind": {
591
+
"enum": [
592
+
"buildAndRunMain"
593
+
]
594
+
},
595
+
"buildTask": {
596
+
"type": "string",
597
+
"description": "Name of the task that builds the main executable"
598
+
},
599
+
"runTask": {
600
+
"type": "string",
601
+
"description": "Name of the task that runs the main executable"
0 commit comments