(fsPath?: string)
| 104 | } |
| 105 | |
| 106 | export async function showDirectorySelectDialog(fsPath?: string): Promise<vscode.Uri[] | undefined> { |
| 107 | const defaultUri: vscode.Uri | undefined = getBelongingWorkspaceFolderUri(fsPath); |
| 108 | const options: vscode.OpenDialogOptions = { |
| 109 | defaultUri, |
| 110 | canSelectFiles: false, |
| 111 | canSelectFolders: true, |
| 112 | canSelectMany: false, |
| 113 | openLabel: "Select", |
| 114 | }; |
| 115 | return await vscode.window.showOpenDialog(options); |
| 116 | } |
| 117 | |
| 118 | export async function openUrl(url: string): Promise<void> { |
| 119 | vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(url)); |
no test coverage detected