(error: unknown)
| 30 | } from "../types"; |
| 31 | |
| 32 | function isMissingTauriInvokeError(error: unknown) { |
| 33 | return ( |
| 34 | error instanceof TypeError && |
| 35 | (error.message.includes("reading 'invoke'") || |
| 36 | error.message.includes("reading \"invoke\"")) |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | export async function pickWorkspacePath(): Promise<string | null> { |
| 41 | const selection = await open({ directory: true, multiple: false }); |
no outgoing calls
no test coverage detected