MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getAllProjectFolders

Function getAllProjectFolders

src/shared/vscode/utils.ts:120–130  ·  view source on GitHub ↗
(
	logger: Logger,
	getExcludedFolders: ((f: WorkspaceFolder | undefined) => string[]) | undefined,
	options: { sort?: boolean; requirePubspec?: boolean, searchDepth: number, workspaceFolders?: WorkspaceFolder[], onlyWorkspaceRoots?: boolean },
)

Source from the content-addressed store, hash-verified

118}
119
120export 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
132export async function getAllProjectFoldersAndExclusions(
133 logger: Logger,

Callers 15

discoverPackageMapsMethod · 0.90
provideTasksMethod · 0.90
getFolderToRunCommandInFunction · 0.90
getProjectSelectionFunction · 0.90
runTestsMethod · 0.90
fetchPackagesOrPromptMethod · 0.90

Calls 1

Tested by

no test coverage detected