From 432ad9498d71dae5ce6adf9aa0e1664d8afd0f21 Mon Sep 17 00:00:00 2001 From: Xithrius Date: Wed, 29 Jun 2022 23:41:47 -0700 Subject: [PATCH] matklad to rust-lang rust-analyzer, added launch config --- .vscode/launch.json | 42 ++++++++++++++++++++++++++++++++++++++++++ .vscode/settings.json | 4 +++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json 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" + } }