(api: TuiApi, title: string, error: unknown)
| 19 | } |
| 20 | |
| 21 | export function showError(api: TuiApi, title: string, error: unknown) { |
| 22 | const message = error instanceof Error ? error.message : String(error) |
| 23 | showStatusDialog(api, title, "DCP Error", message || "Command failed.") |
| 24 | } |
| 25 | |
| 26 | export function openContextModal(api: TuiApi, config: PluginConfig) { |
| 27 | runModal(api, "Context", async () => { |
no test coverage detected