(
logger: Logger,
getExcludedFolders: ((f: WorkspaceFolder | undefined) => string[]) | undefined,
options: { sort?: boolean; requirePubspec?: boolean, searchDepth: number, workspaceFolders?: WorkspaceFolder[], onlyWorkspaceRoots?: boolean },
)
| 118 | } |
| 119 | |
| 120 | export async function getAllProjectFolders( |
| 121 | logger: Logger, |
| 122 | getExcludedFolders: ((f: WorkspaceFolder | undefined) => string[]) | undefined, |
| 123 | options: { sort?: boolean; requirePubspec?: boolean, searchDepth: number, workspaceFolders?: WorkspaceFolder[], onlyWorkspaceRoots?: boolean }, |
| 124 | ) { |
| 125 | // TODO(dantup): The term "Project" is a bit ambiguous, and some places that call here really want "pub roots" (eg. the package, or if it's |
| 126 | // part of a Pub Workspace, the pub workspace root), and some want the packages (eg. the things that have a pubspec.yaml and a name). |
| 127 | // Perhaps consider a GLOSSARY.md and define terms to use consistently (and match don't use "Project" at all?). |
| 128 | const results = await getAllProjectFoldersAndExclusions(logger, getExcludedFolders, options); |
| 129 | return results.projectFolders; |
| 130 | } |
| 131 | |
| 132 | export async function getAllProjectFoldersAndExclusions( |
| 133 | logger: Logger, |
no test coverage detected