Use correct format for setting environment variables when debugging with cpptools

This commit is contained in:
Jonas Rinke 2024-05-25 16:53:01 +02:00
parent 56d77b9048
commit 2315c6b764

View File

@ -194,7 +194,9 @@ function getCCppDebugConfig(
args: runnable.args.executableArgs,
cwd: runnable.args.cwd || runnable.args.workspaceRoot || ".",
sourceFileMap,
env,
environment: Object.entries(env).map(entry => {
return { "name": entry[0], "value": entry[1] }
}),
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
osx: {
MIMode: "lldb",