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

Function showFileSelectDialog

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

Source from the content-addressed store, hash-verified

81}
82
83export async function showFileSelectDialog(fsPath?: string): Promise<vscode.Uri[] | undefined> {
84 const defaultUri: vscode.Uri | undefined = getBelongingWorkspaceFolderUri(fsPath);
85 const options: vscode.OpenDialogOptions = {
86 defaultUri,
87 canSelectFiles: true,
88 canSelectFolders: false,
89 canSelectMany: false,
90 openLabel: "Select",
91 };
92 return await vscode.window.showOpenDialog(options);
93}
94
95function getBelongingWorkspaceFolderUri(fsPath: string | undefined): vscode.Uri | undefined {
96 let defaultUri: vscode.Uri | undefined;

Callers 1

testSolutionFunction · 0.90

Calls 1

Tested by

no test coverage detected