Skip to content

Commit 90e3c88

Browse files
committed
lldbdap env dict to string
1 parent 87baa0e commit 90e3c88

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const knownEngines: {
230230
"llvm-vs-code-extensions.lldb-dap":{
231231
type: "lldb-dap",
232232
executableProperty: "program",
233-
environmentProperty: (env) => ["env", env],
233+
environmentProperty: (env) => ["env", Object.entries(env).map(([k,v])=>`${k}=${v}`)],
234234
runnableArgsProperty: (runnableArgs: ra.CargoRunnableArgs) => [
235235
"args",
236236
runnableArgs.executableArgs,
@@ -352,7 +352,8 @@ type CCppDebugConfig = {
352352
type LldbDapDebugConfig = {
353353
program: string;
354354
args: string[];
355-
env: Record<string, string>;
355+
env: string[];
356+
sourceMap: [string,string][];
356357
} & BaseDebugConfig<"lldb-dap">;
357358

358359

0 commit comments

Comments
 (0)