diff options
Diffstat (limited to 'editors/code/src/commands/runnables.ts')
-rw-r--r-- | editors/code/src/commands/runnables.ts | 7 |
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 | } |