Skip to content

Instantly share code, notes, and snippets.

@chappjc
Created June 11, 2016 17:19
Show Gist options
  • Select an option

  • Save chappjc/dc49686a4585420ff7d2b4280655b38f to your computer and use it in GitHub Desktop.

Select an option

Save chappjc/dc49686a4585420ff7d2b4280655b38f to your computer and use it in GitHub Desktop.
Golang tasks for Visual Studio Code - 1
{
"version": "0.1.0",
"command": "bash",
"isShellCommand": true,
"showOutput": "always",
"args": [
"-c"
],
"tasks": [
{
"taskName": "go-inst-run",
"suppressTaskName": true,
"isBuildCommand": true,
"args": [
"go install && appName"
]
}
]
}
{
"version": "0.1.0",
"command": "go",
"isShellCommand": true,
"showOutput": "always",
"options": {
"env": {
}
},
"tasks": [
{
"taskName": "install",
"args": [ "-v", "./..."],
"isBuildCommand": true
},
{
"taskName": "build",
"args": [ "-v", "./..."],
"isBuildCommand": true
},
{
"taskName": "test",
"args": [ "-v", "./..."],
"isTestCommand": true
}
]
}
@chappjc
Copy link
Copy Markdown
Author

chappjc commented Aug 18, 2016

Note that having multiple isBuildCommand set to true tends to confuse VS code. I'd just pick one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment