@@ -6,7 +6,7 @@ import type * as ra from "./lsp_ext";
6
6
import { Cargo } from "./toolchain" ;
7
7
import type { Ctx } from "./ctx" ;
8
8
import { createTaskFromRunnable , prepareEnv } from "./run" ;
9
- import { execSync } from ' node:child_process' ;
9
+ import { execSync } from " node:child_process" ;
10
10
import { execute , isCargoRunnableArgs , unwrapUndefinable } from "./util" ;
11
11
import type { Config } from "./config" ;
12
12
@@ -110,9 +110,9 @@ async function getDebugConfiguration(
110
110
111
111
await vscode . window . showErrorMessage (
112
112
`Install [CodeLLDB](command:${ commandCodeLLDB } "Open CodeLLDB")` +
113
- `, [lldb-dap](command:${ commandLLDBDap } "Open lldb-dap")` +
114
- `, [C/C++](command:${ commandCCpp } "Open C/C++") ` +
115
- `or [Native Debug](command:${ commandNativeDebug } "Open Native Debug") for debugging.` ,
113
+ `, [lldb-dap](command:${ commandLLDBDap } "Open lldb-dap")` +
114
+ `, [C/C++](command:${ commandCCpp } "Open C/C++") ` +
115
+ `or [Native Debug](command:${ commandNativeDebug } "Open Native Debug") for debugging.` ,
116
116
) ;
117
117
return ;
118
118
}
@@ -130,7 +130,7 @@ async function getDebugConfiguration(
130
130
! isMultiFolderWorkspace || ! runnableArgs . workspaceRoot
131
131
? firstWorkspace
132
132
: workspaceFolders . find ( ( w ) => runnableArgs . workspaceRoot ?. includes ( w . uri . fsPath ) ) ||
133
- firstWorkspace ;
133
+ firstWorkspace ;
134
134
135
135
const workspace = unwrapUndefinable ( maybeWorkspace ) ;
136
136
let wsFolder = path . normalize ( workspace . uri . fsPath ) ;
@@ -237,15 +237,15 @@ const knownEngines: {
237
237
runnableArgs . executableArgs ,
238
238
] ,
239
239
additional : {
240
- " sourceMap" : [
240
+ sourceMap : [
241
241
[
242
- `/rustc/${ / c o m m i t - h a s h : \s ( .* ) $ / m. exec ( execSync ( "rustc -V -v" , { } ) . toString ( ) ) ?. [ 1 ]
243
- } /library` ,
244
- "${config:rust-analyzer.cargo.sysroot}/lib/rustlib/src/rust/ library"
245
-
246
- ]
247
- ]
248
- }
242
+ `/rustc/${ / c o m m i t - h a s h : \s ( .* ) $ / m. exec (
243
+ execSync ( "rustc -V -v" , { } ) . toString ( ) ,
244
+ ) ?. [ 1 ] } / library` ,
245
+ "${config:rust-analyzer.cargo.sysroot}/lib/rustlib/src/rust/library" ,
246
+ ] ,
247
+ ] ,
248
+ } ,
249
249
} ,
250
250
"vadimcn.vscode-lldb" : {
251
251
type : "lldb" ,
@@ -366,7 +366,6 @@ type LldbDapDebugConfig = {
366
366
sourceMap : [ string , string ] [ ] ;
367
367
} & BaseDebugConfig < "lldb-dap" > ;
368
368
369
-
370
369
type CodeLldbDebugConfig = {
371
370
program : string ;
372
371
args : string [ ] ;
0 commit comments