Skip to content

Commit

Permalink
perf: refine vscode development configuration (#80)
Browse files Browse the repository at this point in the history
- Debug in the target folder
- Avoid annoying cmake automatic configuration
- Show CMake toolset with icons in status bar
- Configure pytest args

Signed-off-by: l.feng <[email protected]>
  • Loading branch information
msclock authored Dec 21, 2024
1 parent 9cf78ec commit 5c3e3f6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${command:cmake.launchTargetDirectory}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
Expand Down
11 changes: 9 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"python.testing.pytestArgs": ["tests"],
"python.testing.pytestArgs": [
"tests",
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"cmake.configureOnEdit": false,
"cmake.options.statusBarVisibility": "icon",
"cmake.useCMakePresets": "always",
"cmake.options.statusBarVisibility": "compact",
"files.associations": {
"iosfwd": "cpp",
"type_traits": "cpp",
Expand Down
2 changes: 1 addition & 1 deletion template/.vscode/launch.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${command:cmake.launchTargetDirectory}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
Expand Down
11 changes: 9 additions & 2 deletions template/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"python.testing.pytestArgs": ["tests"],
"python.testing.pytestArgs": [
"tests",
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"cmake.configureOnEdit": false,
"cmake.options.statusBarVisibility": "icon",
"cmake.useCMakePresets": "always",
"cmake.options.statusBarVisibility": "compact",
"files.associations": {
"iosfwd": "cpp",
"type_traits": "cpp",
Expand Down

0 comments on commit 5c3e3f6

Please sign in to comment.