2022-01-21 12:47:00 +00:00
|
|
|
{
|
|
|
|
|
"folders": [
|
|
|
|
|
{
|
|
|
|
|
"path": "."
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"settings": {
|
2022-02-04 16:05:11 +00:00
|
|
|
|
|
|
|
|
// Attributes for the tests invoked directly from go-files in the UI
|
2022-01-21 12:47:00 +00:00
|
|
|
"go.testEnvVars": {"LANG": "C.UTF-8"},
|
2022-02-04 16:05:11 +00:00
|
|
|
"go.testFlags": [
|
|
|
|
|
"-v",
|
|
|
|
|
"-check.v"
|
|
|
|
|
],
|
2022-01-21 12:47:00 +00:00
|
|
|
},
|
|
|
|
|
"extensions": {
|
2022-02-04 16:05:11 +00:00
|
|
|
|
|
|
|
|
// Recommended extensions (type @recommended in Extensions tab to list)
|
2022-01-21 12:47:00 +00:00
|
|
|
"recommendations": [
|
2022-02-04 16:05:11 +00:00
|
|
|
"golang.go", // Golang extensions
|
|
|
|
|
"ms-vscode.cpptools-extension-pack", // C/C++ extensions
|
|
|
|
|
|
|
|
|
|
// Useful extra extensions, for reference:
|
2022-02-05 08:46:31 +00:00
|
|
|
//"766b.go-outliner", // Outlines packages that spread over several files
|
|
|
|
|
//"jerrygoyal.shortcut-menu-bar", // Menu bar with shortcuts for navigation and editing
|
2022-02-04 16:05:11 +00:00
|
|
|
//"eamodio.gitlens", // Spectacular git-integration
|
2022-02-05 08:46:31 +00:00
|
|
|
//"aaron-bond.better-comments", // Decorates comments based on annotations
|
|
|
|
|
//"vscodevim.vim", // Vim emulation
|
|
|
|
|
//"tuttieee.emacs-mcx", // Emacs emulation
|
2022-01-21 12:47:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
2022-02-04 16:05:11 +00:00
|
|
|
|
2022-01-21 12:47:00 +00:00
|
|
|
"launch": {
|
|
|
|
|
"version": "0.2.0",
|
|
|
|
|
"configurations": [
|
2022-02-04 16:05:11 +00:00
|
|
|
|
|
|
|
|
// Default simple configuration to run tests of the package in the focus
|
2022-01-21 12:47:00 +00:00
|
|
|
{
|
|
|
|
|
"name": "Test (package)",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "test",
|
|
|
|
|
"cwd": "${fileDirname}",
|
|
|
|
|
"output": "/tmp/go-build${fileBasenameNoExtension}/${relativeFile}/snap.test",
|
|
|
|
|
"program": "${fileDirname}",
|
|
|
|
|
"env": {"LANG": "C.UTF-8"},
|
|
|
|
|
"args": ["-test.timeout=30m0s"],
|
|
|
|
|
},
|
2022-02-04 16:05:11 +00:00
|
|
|
|
|
|
|
|
// Fully verbose configuration to run tests of the package in the focus
|
2022-01-21 12:47:00 +00:00
|
|
|
{
|
|
|
|
|
"name": "Test verbose (package)",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "test",
|
|
|
|
|
"cwd": "${fileDirname}",
|
|
|
|
|
"output": "/tmp/go-build${fileBasenameNoExtension}/${relativeFile}/snap.test",
|
|
|
|
|
"program": "${fileDirname}",
|
|
|
|
|
"env": {
|
|
|
|
|
"LANG": "C.UTF-8",
|
|
|
|
|
"args": ["-v", "-check.vv", "-test.timeout=30m0s"],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
]
|
2022-02-04 16:05:11 +00:00
|
|
|
},
|
2022-01-21 12:47:00 +00:00
|
|
|
}
|