Skip to content

Instantly share code, notes, and snippets.

@mitchell-merry
Last active August 12, 2022 09:36
Show Gist options
  • Save mitchell-merry/2d628efa4c406e1748f663b322e53c94 to your computer and use it in GitHub Desktop.
Save mitchell-merry/2d628efa4c406e1748f663b322e53c94 to your computer and use it in GitHub Desktop.
VSCode build tasks for .pml (PROMELA)
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile C file with cc.",
"type": "shell",
"command": "cc ${relativeFile}",
"windows": {
"command": "gcc ${relativeFile}"
},
"group": {
"kind": "build",
"isDefault": false
},
"presentation": {
"reveal": "silent",
"panel": "shared"
},
},
{
"label": "Run most recent compiled C file.",
"type": "shell",
"command": "./a.out",
"group": {
"kind": "test",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "shared"
},
},
{
"label": "Compile and run current C file.",
"dependsOn": ["Compile C file with cc.", "Run most recent compiled C file."],
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment