diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8dfd61f --- /dev/null +++ b/.vscode/launch.json @@ -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}" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 99d72a1..d98d2bf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "editor.defaultFormatter": "matklad.rust-analyzer" + "[rust]": { + "editor.defaultFormatter": "rust-lang.rust-analyzer" + } }