Skip to content

Instantly share code, notes, and snippets.

@Lerg
Last active July 7, 2023 22:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lerg/ae677d8596b52f9d4dcb0e8a2546adce to your computer and use it in GitHub Desktop.
Save Lerg/ae677d8596b52f9d4dcb0e8a2546adce to your computer and use it in GitHub Desktop.
"Jai: Build & Run" - VS Code task for building and running a Jai program
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Jai: Build & Run",
"command": "jai -quiet ${file} && ${fileDirname}${pathSeparator}${fileBasenameNoExtension}",
"group": "build",
"presentation": {
"revealProblems": "onProblem",
"reveal": "always",
"clear": true,
"showReuseMessage": false
},
"problemMatcher": [
{
"severity": "error",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(.*):(\\d+),(\\d+).*Error: (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"owner": "jai"
},
{
"severity": "warning",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(.*):(\\d+),(\\d+).*Warning: (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"owner": "jai"
},
{
"severity": "info",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(.*):(\\d+),(\\d+).*Info: (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"owner": "jai"
},
{
"severity": "info",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(.*)\\((.*):(\\d+)\\)$",
"file": 2,
"line": 3,
"message": 1,
}
],
"owner": "jai"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment