| 1 |
import * as vscode from "vscode"; |
| 2 |
|
| 3 |
/** |
| 4 |
* Callback used to generate the actual command to be executed to launch the lldb-dap binary. |
| 5 |
* |
| 6 |
* @param session - The information of the debug session to be launched. |
| 7 |
* |
| 8 |
* @param packageJSONExecutable - An optional {@link vscode.DebugAdapterExecutable executable} for |
| 9 |
* lldb-dap if specified in the package.json file. |
| 10 |
*/ |
| 11 |
export type LLDBDapCreateDAPExecutableCommand = ( |
| 12 |
session: vscode.DebugSession, |
| 13 |
packageJSONExecutable: vscode.DebugAdapterExecutable | undefined, |
| 14 |
) => Promise<vscode.DebugAdapterExecutable | undefined>; |
| 15 |
|
| 16 |
/** |
| 17 |
* The options that this extension accepts. |
| 18 |
*/ |
| 19 |
export interface LLDBDapOptions { |
| 20 |
createDapExecutableCommand: LLDBDapCreateDAPExecutableCommand; |
| 21 |
// The name of the debugger type as specified in the package.json file. |
| 22 |
debuggerType: string; |
| 23 |
} |