File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 427
427
"rust-analyzer.debug.engineSettings" : {
428
428
"type" : " object" ,
429
429
"default" : {},
430
- "description" : " Optional settings passed to the debug engine."
430
+ "description" : " Optional settings passed to the debug engine. Example: \n { \" lldb \" : { \" terminal \" : \" external \" } } "
431
431
}
432
432
}
433
433
},
609
609
}
610
610
]
611
611
}
612
- }
612
+ }
Original file line number Diff line number Diff line change @@ -134,9 +134,12 @@ export function debugSingle(ctx: Ctx): Cmd {
134
134
}
135
135
136
136
const executable = await getDebugExecutable ( config ) ;
137
- let debugConfig = knownEngines [ debugEngine . id ] ( config , executable , debugOptions . sourceFileMap ) ;
138
- for ( var key in debugOptions . engineSettings ) {
139
- debugConfig [ key ] = ( debugOptions . engineSettings as any ) [ key ] ;
137
+ const debugConfig = knownEngines [ debugEngine . id ] ( config , executable , debugOptions . sourceFileMap ) ;
138
+ if ( debugConfig . type in debugOptions . engineSettings ) {
139
+ const settingsMap = ( debugOptions . engineSettings as any ) [ debugConfig . type ] ;
140
+ for ( var key in settingsMap ) {
141
+ debugConfig [ key ] = settingsMap [ key ] ;
142
+ }
140
143
}
141
144
142
145
debugOutput . appendLine ( "Launching debug configuration:" ) ;
You can’t perform that action at this time.
0 commit comments