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

Function findBazelWorkspaceRoot

src/extension/sdk/utils.ts:743–745  ·  view source on GitHub ↗
(logger: Logger, folder: string)

Source from the content-addressed store, hash-verified

741}
742
743async function findBazelWorkspaceRoot(logger: Logger, folder: string): Promise<string | undefined> {
744 return findRootContaining(folder, "WORKSPACE", "FILE");
745}
746
747async function findGitRoot(logger: Logger, folder: string): Promise<string | undefined> {
748 return findRootContaining(folder, ".git", "ANY");

Callers

nothing calls this directly

Calls 1

findRootContainingFunction · 0.85

Tested by

no test coverage detected