Skip to content

Commit 4da2eb2

Browse files
committed
Create 'ada' and 'spark' task types
1 parent c92073c commit 4da2eb2

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

integration/vscode/ada/package.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,108 @@
445445
}
446446
],
447447
"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+
"additionalProperties": false,
483+
"oneOf": [
484+
{
485+
"properties": {
486+
"kind": {
487+
"enum": [
488+
"buildProject",
489+
"checkFile",
490+
"cleanProject"
491+
]
492+
}
493+
}
494+
},
495+
{
496+
"properties": {
497+
"kind": {
498+
"enum": [
499+
"buildMain",
500+
"buildAndRunMain"
501+
]
502+
},
503+
"main": {
504+
"type": "string"
505+
}
506+
}
507+
}
508+
]
509+
}
510+
}
511+
},
512+
{
513+
"type": "spark",
514+
"properties": {
515+
"configuration": {
516+
"type": "object",
517+
"required": [
518+
"kind",
519+
"projectFile"
520+
],
521+
"properties": {
522+
"kind": {
523+
"description": "Kind of SPARK task",
524+
"enum": [
525+
"cleanProjectForProof",
526+
"examineProject",
527+
"examineFile",
528+
"examineSubprogram",
529+
"proveProject",
530+
"proveFile",
531+
"proveSubprogram",
532+
"proveRegion",
533+
"proveLine"
534+
]
535+
},
536+
"projectFile": {
537+
"type": "string",
538+
"description": "Path to GPR project file",
539+
"default": "${config:ada.projectFile}"
540+
},
541+
"args": {
542+
"type": "array",
543+
"description": "Extra command line arguments"
544+
}
545+
},
546+
"additionalProperties": false
547+
}
548+
}
549+
},
448550
{
449551
"type": "gnat",
450552
"required": [

0 commit comments

Comments
 (0)