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";
55
66import { Cargo , getRustcId , getSysroot } from "./toolchain" ;
77import type { Ctx } from "./ctx" ;
8- import { prepareEnv } from "./run" ;
8+ import { createCargoArgs , prepareEnv } from "./run" ;
99import { isCargoRunnableArgs , unwrapUndefinable } from "./util" ;
1010
1111const debugOutput = vscode . window . createOutputChannel ( "Debug" ) ;
@@ -180,7 +180,8 @@ async function getDebugExecutable(
180180 env : Record < string , string > ,
181181) : Promise < string > {
182182 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 ) ;
184185
185186 // if we are here, there were no compilation errors.
186187 return executable ;
You can’t perform that action at this time.
0 commit comments