(uri: vscode.Uri)
| 75 | } |
| 76 | |
| 77 | export const getRemixRootFromFileUri = async (uri: vscode.Uri) => { |
| 78 | let root = uri; |
| 79 | if (await isRemixDir(root)) { |
| 80 | return uri; |
| 81 | } |
| 82 | const parent = getParentDirFromFileUri(root); |
| 83 | const workspaceUri = getWorkspaceUri(); |
| 84 | if (!workspaceUri || (workspaceUri && isChildOrNestedChildUri(root, workspaceUri))) { |
| 85 | return; |
| 86 | } |
| 87 | root = (await getRemixRootFromFileUri(parent)) || root; |
| 88 | return root; |
| 89 | }; |
| 90 | |
| 91 | export async function findTestFile( |
| 92 | filePath: string, |
no test coverage detected