@@ -6,7 +6,7 @@ import type * as ra from "./lsp_ext";
66import { Cargo } from "./toolchain" ;
77import type { Ctx } from "./ctx" ;
88import { createTaskFromRunnable , prepareEnv } from "./run" ;
9- import { execSync } from ' node:child_process' ;
9+ import { execSync } from " node:child_process" ;
1010import { execute , isCargoRunnableArgs , unwrapUndefinable } from "./util" ;
1111import type { Config } from "./config" ;
1212
@@ -110,9 +110,9 @@ async function getDebugConfiguration(
110110
111111 await vscode . window . showErrorMessage (
112112 `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.` ,
116116 ) ;
117117 return ;
118118 }
@@ -130,7 +130,7 @@ async function getDebugConfiguration(
130130 ! isMultiFolderWorkspace || ! runnableArgs . workspaceRoot
131131 ? firstWorkspace
132132 : workspaceFolders . find ( ( w ) => runnableArgs . workspaceRoot ?. includes ( w . uri . fsPath ) ) ||
133- firstWorkspace ;
133+ firstWorkspace ;
134134
135135 const workspace = unwrapUndefinable ( maybeWorkspace ) ;
136136 let wsFolder = path . normalize ( workspace . uri . fsPath ) ;
@@ -237,15 +237,15 @@ const knownEngines: {
237237 runnableArgs . executableArgs ,
238238 ] ,
239239 additional : {
240- " sourceMap" : [
240+ sourceMap : [
241241 [
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+ } ,
249249 } ,
250250 "vadimcn.vscode-lldb" : {
251251 type : "lldb" ,
@@ -366,7 +366,6 @@ type LldbDapDebugConfig = {
366366 sourceMap : [ string , string ] [ ] ;
367367} & BaseDebugConfig < "lldb-dap" > ;
368368
369-
370369type CodeLldbDebugConfig = {
371370 program : string ;
372371 args : string [ ] ;
0 commit comments