(fsPath: string | undefined)
| 93 | } |
| 94 | |
| 95 | function getBelongingWorkspaceFolderUri(fsPath: string | undefined): vscode.Uri | undefined { |
| 96 | let defaultUri: vscode.Uri | undefined; |
| 97 | if (fsPath) { |
| 98 | const workspaceFolder: vscode.WorkspaceFolder | undefined = vscode.workspace.getWorkspaceFolder(vscode.Uri.file(fsPath)); |
| 99 | if (workspaceFolder) { |
| 100 | defaultUri = workspaceFolder.uri; |
| 101 | } |
| 102 | } |
| 103 | return defaultUri; |
| 104 | } |
| 105 | |
| 106 | export async function showDirectorySelectDialog(fsPath?: string): Promise<vscode.Uri[] | undefined> { |
| 107 | const defaultUri: vscode.Uri | undefined = getBelongingWorkspaceFolderUri(fsPath); |
no outgoing calls
no test coverage detected