Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Fixes #744 Adding configuration snippets (#794)
Browse files Browse the repository at this point in the history
* Fixes #744 Add configuration snippets

* Moving the forward slash out of snippet placeholder
  • Loading branch information
ramya-rao-a authored Feb 14, 2017
1 parent 6ed16f4 commit 00c4468
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,56 @@
"go"
],
"startSessionCommand": "go.debug.startSession",
"configurationSnippets": [
{
"label": "Go: Launch package",
"description": "Debug the package in the program attribute",
"body":{
"name": "${2:Launch Package}",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "^\"\\${workspaceRoot}${1:}\""
}
},
{
"label": "Go: Launch file",
"description": "Debug the file in the program attribute",
"body":{
"name": "${2:Launch file}",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "^\"\\${workspaceRoot}/${1:main.go}\""
}
},
{
"label": "Go: Launch test package",
"description": "Debug the test package in the program attribute",
"body":{
"name": "${2:Launch test package}",
"type": "go",
"request": "launch",
"mode": "test",
"program": "^\"\\${workspaceRoot}${1:}\""
}
},
{
"label": "Go: Launch test function",
"description": "Debug the test function in the args, ensure program attributes points to right package",
"body":{
"name": "${3:Launch test function}",
"type": "go",
"request": "launch",
"mode": "test",
"program": "^\"\\${workspaceRoot}${1:}\"",
"args": [
"-test.run",
"${2:MyTestFunction}"
]
}
}
],
"initialConfigurations": [
{
"name": "Launch",
Expand Down

0 comments on commit 00c4468

Please sign in to comment.