File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/tools/rust-analyzer/editors/code/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type * as ra from "./lsp_ext";
5
5
6
6
import { Cargo , getRustcId , getSysroot } from "./toolchain" ;
7
7
import type { Ctx } from "./ctx" ;
8
- import { prepareEnv } from "./run" ;
8
+ import { createCargoArgs , prepareEnv } from "./run" ;
9
9
import { isCargoRunnableArgs , unwrapUndefinable } from "./util" ;
10
10
11
11
const debugOutput = vscode . window . createOutputChannel ( "Debug" ) ;
@@ -180,7 +180,8 @@ async function getDebugExecutable(
180
180
env : Record < string , string > ,
181
181
) : Promise < string > {
182
182
const cargo = new Cargo ( runnableArgs . workspaceRoot || "." , debugOutput , env ) ;
183
- const executable = await cargo . executableFromArgs ( runnableArgs . cargoArgs ) ;
183
+ const args = createCargoArgs ( runnableArgs ) ;
184
+ const executable = await cargo . executableFromArgs ( args ) ;
184
185
185
186
// if we are here, there were no compilation errors.
186
187
return executable ;
You can’t perform that action at this time.
0 commit comments