MCPcopy Index your code
hub / github.com/LeetCode-OpenSource/vscode-leetcode / showDirectorySelectDialog

Function showDirectorySelectDialog

src/utils/uiUtils.ts:106–116  ·  view source on GitHub ↗
(fsPath?: string)

Source from the content-addressed store, hash-verified

104}
105
106export 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
118export async function openUrl(url: string): Promise<void> {
119 vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(url));

Callers 1

determineLeetCodeFolderFunction · 0.90

Calls 1

Tested by

no test coverage detected