diff options
| author | Jonas Rinke <delphi1024@gmail.com> | 2024-05-25 16:53:01 +0200 |
|---|---|---|
| committer | Jonas Rinke <delphi1024@gmail.com> | 2024-05-25 16:53:01 +0200 |
| commit | 2315c6b764ca75b8bf1e778ebea386e57787a0f2 (patch) | |
| tree | 8853bf710d427b1de896f2c28f1fb0f1868c055e /src/tools/rust-analyzer/editors/code | |
| parent | 56d77b90480c3c923a5689262b186382de4d8d65 (diff) | |
| download | rust-2315c6b764ca75b8bf1e778ebea386e57787a0f2.tar.gz rust-2315c6b764ca75b8bf1e778ebea386e57787a0f2.zip | |
Use correct format for setting environment variables when debugging with cpptools
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/src/debug.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/editors/code/src/debug.ts b/src/tools/rust-analyzer/editors/code/src/debug.ts index 855e8b082ae..3e4446e5668 100644 --- a/src/tools/rust-analyzer/editors/code/src/debug.ts +++ b/src/tools/rust-analyzer/editors/code/src/debug.ts @@ -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", |
