(dir: vscode.Uri, filename: string)
| 41 | export type FileSearchStrategy = "all" | "one-up" | "sub"; |
| 42 | |
| 43 | export const fileExists = async (dir: vscode.Uri, filename: string): Promise<boolean> => { |
| 44 | try { |
| 45 | await vscode.workspace.fs.stat(vscode.Uri.joinPath(dir, filename)); |
| 46 | return true; |
| 47 | } catch (_e) { |
| 48 | return false; |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | async function directoryHasPackageJson(dir: vscode.Uri) { |
| 53 | try { |
no outgoing calls
no test coverage detected