(uri?: Uri)
| 19 | } |
| 20 | |
| 21 | export function isInsideFlutterProject(uri?: Uri): boolean { |
| 22 | if (!uri) |
| 23 | return false; |
| 24 | |
| 25 | const projectRoot = locateBestProjectRoot(fsPath(uri)); |
| 26 | if (projectRoot) |
| 27 | return isFlutterProjectFolder(projectRoot); |
| 28 | else |
| 29 | return isFlutterWorkspaceFolder(workspace.getWorkspaceFolder(uri)); |
| 30 | } |
| 31 | |
| 32 | export function isPathInsideFlutterProject(path: string): boolean { |
| 33 | // TODO(dantup): This can be called quite a lot when discovering tests, so consider |
no test coverage detected