Skip to content

Commit 003b21f

Browse files
feat(other): add recommended VS Code extension and launch configuration for Rust debugger (#264)
* feat: add debugger for vscode Signed-off-by: KeisukeYamashita <[email protected]> * feat: add recommended extensions Signed-off-by: KeisukeYamashita <[email protected]> --------- Signed-off-by: KeisukeYamashita <[email protected]>
1 parent d0d5307 commit 003b21f

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.vscode/extensions.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"DavidAnson.vscode-markdownlint",
4+
"esbenp.prettier-vscode",
5+
"rust-lang.rust-analyzer",
6+
"streetsidesoftware.code-spell-checker",
7+
"usernamehw.errorlens"
8+
]
9+
}

.vscode/launch.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug executable 'commitlint'",
11+
"cargo": {
12+
"args": ["build", "--bin=commitlint", "--package=commitlint-rs"],
13+
"filter": {
14+
"name": "commitlint",
15+
"kind": "bin"
16+
}
17+
},
18+
"args": [],
19+
"cwd": "${workspaceFolder}"
20+
},
21+
{
22+
"type": "lldb",
23+
"request": "launch",
24+
"name": "Debug unit tests in executable 'commitlint'",
25+
"cargo": {
26+
"args": [
27+
"test",
28+
"--no-run",
29+
"--bin=commitlint",
30+
"--package=commitlint-rs"
31+
],
32+
"filter": {
33+
"name": "commitlint",
34+
"kind": "bin"
35+
}
36+
},
37+
"args": [],
38+
"cwd": "${workspaceFolder}"
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)