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

Function isPathInsideFlutterProject

src/extension/utils.ts:32–40  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

30}
31
32export function isPathInsideFlutterProject(path: string): boolean {
33 // TODO(dantup): This can be called quite a lot when discovering tests, so consider
34 // maintaining a model for the workspace.
35 const projectRoot = locateBestProjectRoot(path);
36 if (!projectRoot)
37 return false;
38
39 return isFlutterProjectFolder(projectRoot);
40}
41
42export function insertSessionName(args: { name: string }, logPath: string | undefined) {
43 return logPath

Callers 1

runTestsMethod · 0.90

Calls 2

locateBestProjectRootFunction · 0.90
isFlutterProjectFolderFunction · 0.90

Tested by

no test coverage detected