mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Fix debug configuration querying not inheriting environment
This commit is contained in:
parent
b65911d5ee
commit
d75f996722
4 changed files with 42 additions and 154 deletions
|
@ -148,8 +148,16 @@ async function getDebugConfiguration(
|
|||
return path.normalize(p).replace(wsFolder, `\${workspaceFolder${workspaceQualifier}}`);
|
||||
}
|
||||
|
||||
const env = prepareEnv(inheritEnv, runnable.label, runnableArgs, config.runnablesExtraEnv);
|
||||
const executable = await getDebugExecutable(runnableArgs, env);
|
||||
const executable = await getDebugExecutable(
|
||||
runnableArgs,
|
||||
prepareEnv(true, {}, config.runnablesExtraEnv(runnable.label)),
|
||||
);
|
||||
|
||||
const env = prepareEnv(
|
||||
inheritEnv,
|
||||
runnableArgs.environment,
|
||||
config.runnablesExtraEnv(runnable.label),
|
||||
);
|
||||
let sourceFileMap = debugOptions.sourceFileMap;
|
||||
|
||||
if (sourceFileMap === "auto") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue