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

Function isValidPubGetTarget

src/shared/vscode/pub.ts:104–113  ·  view source on GitHub ↗
(folderUri: Uri)

Source from the content-addressed store, hash-verified

102}
103
104export function isValidPubGetTarget(folderUri: Uri): { valid: true } | { valid: false, reason: string } {
105 const folderPath = fsPath(folderUri);
106
107 // If a folder starts with '__' or '{' then it's probably a template of some
108 // sort and we shouldn't run.
109 if (folderPath.includes("__") || folderPath.includes("{"))
110 return { valid: false, reason: "Folder includes __ or { and looks like a template folder" };
111
112 return { valid: true };
113}
114
115function getPubPackageStatus(
116 sdks: Sdks,

Callers 2

getPubPackageStatusFunction · 0.85

Calls 1

fsPathFunction · 0.90

Tested by

no test coverage detected