Skip to content

Commit

Permalink
vscode: added integrated support for VSCODE
Browse files Browse the repository at this point in the history
Added support for MS VSCODE in a form of a workspace file
(snapd.code-workspace) configred to develop `snapd` using this IDE,
including recommendations for the set of usefull extensions.
The IDE will suggest installing these extensions when the workspace
file is opened first time.
The IDE gets configured also to provide a simple way of debugging
and running the tests directly via the IDE.

Signed-off-by: Arseniy Aharonov <arseniy.aharonov@canonical.com>
  • Loading branch information
are-scenic committed Jan 21, 2022
1 parent 60152fa commit bb68a3c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions snapd.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"go.testEnvVars": {"LANG": "C.UTF-8"},
"go.testFlags": ["-v","-check.v"]
},
"extensions": {
"recommendations": [
"golang.go",
"766b.go-outliner",
"jerrygoyal.shortcut-menu-bar",
"eamodio.gitlens",
"aaron-bond.better-comments",
"vscodevim.vim",
"tuttieee.emacs-mcx",
"ms-vscode.cpptools-extension-pack",
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"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"],
},
{
"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"],
}
},
]
}
}

0 comments on commit bb68a3c

Please sign in to comment.