Skip to content

Commit a2304ba

Browse files
committed
prettier format
1 parent 3918e29 commit a2304ba

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

  • src/tools/rust-analyzer/editors/code/src

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type * as ra from "./lsp_ext";
66
import{Cargo}from"./toolchain";
77
importtype{Ctx}from"./ctx";
88
import{createTaskFromRunnable,prepareEnv}from"./run";
9-
import{execSync}from'node:child_process';
9+
import{execSync}from"node:child_process";
1010
import{execute,isCargoRunnableArgs,unwrapUndefinable}from"./util";
1111
importtype{Config}from"./config";
1212

@@ -110,9 +110,9 @@ async function getDebugConfiguration(
110110

111111
awaitvscode.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
constworkspace=unwrapUndefinable(maybeWorkspace);
136136
letwsFolder=path.normalize(workspace.uri.fsPath);
@@ -237,15 +237,15 @@ const knownEngines: {
237237
runnableArgs.executableArgs,
238238
],
239239
additional: {
240-
"sourceMap": [
240+
sourceMap: [
241241
[
242-
`/rustc/${/commit-hash:\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/${/commit-hash:\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-
370369
typeCodeLldbDebugConfig={
371370
program: string;
372371
args: string[];

0 commit comments

Comments
 (0)