aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorHannes De Valkeneer <[email protected]>2020-03-12 20:28:26 +0000
committerHannes De Valkeneer <[email protected]>2020-03-12 20:28:26 +0000
commite9d025b618aaa1a5a06e60c17392a18f12471217 (patch)
treef0af4d8a9eead1bb684cdee060411bbc6fee5bad /editors/code
parenta034257e5ed5a3758e1ea2f72b3b905d1b2b320a (diff)
fixup! feat: add debug code lens
avoid repetition of `--no-run`
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/commands/runnables.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts
index 51cfb37d5..357155163 100644
--- a/editors/code/src/commands/runnables.ts
+++ b/editors/code/src/commands/runnables.ts
@@ -67,12 +67,6 @@ export function debugSingle(ctx: Ctx): Cmd {
67 const editor = ctx.activeRustEditor; 67 const editor = ctx.activeRustEditor;
68 if (!editor) return; 68 if (!editor) return;
69 69
70 if (config.args[0] === 'run') {
71 config.args[0] = 'build';
72 } else {
73 config.args.push('--no-run');
74 }
75
76 const debugConfig = { 70 const debugConfig = {
77 type: "lldb", 71 type: "lldb",
78 request: "launch", 72 request: "launch",
@@ -83,6 +77,7 @@ export function debugSingle(ctx: Ctx): Cmd {
83 args: config.extraArgs, 77 args: config.extraArgs,
84 cwd: config.cwd 78 cwd: config.cwd
85 }; 79 };
80
86 return vscode.debug.startDebugging(undefined, debugConfig); 81 return vscode.debug.startDebugging(undefined, debugConfig);
87 }; 82 };
88} 83}