Skip to content

Commit

Permalink
matklad to rust-lang rust-analyzer, added launch config
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Jun 30, 2022
1 parent d966a49 commit 432ad94
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'twt'",
"cargo": {
"args": [
"build",
"--bin=twt",
"--package=twitch-tui"
],
"filter": {
"name": "twt",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'twt'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=twt",
"--package=twitch-tui"
],
"filter": {
"name": "twt",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"editor.defaultFormatter": "matklad.rust-analyzer"
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
}
}

0 comments on commit 432ad94

Please sign in to comment.