Skip to content

Commit 2315c6b

Browse files
committed
Use correct format for setting environment variables when debugging with cpptools
1 parent 56d77b9 commit 2315c6b

File tree

1 file changed

+3
-1
lines changed
  • src/tools/rust-analyzer/editors/code/src

1 file changed

+3
-1
lines changed

src/tools/rust-analyzer/editors/code/src/debug.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ function getCCppDebugConfig(
194194
args: runnable.args.executableArgs,
195195
cwd: runnable.args.cwd || runnable.args.workspaceRoot || ".",
196196
sourceFileMap,
197-
env,
197+
environment: Object.entries(env).map(entry => {
198+
return { "name": entry[0], "value": entry[1] }
199+
}),
198200
// See https://github.com/rust-lang/rust-analyzer/issues/16901#issuecomment-2024486941
199201
osx: {
200202
MIMode: "lldb",

0 commit comments

Comments
 (0)