(packageFolderOrPubspecUris: Uri[])
| 284 | * If any URIs are non-file URIs, they will be dropped. |
| 285 | */ |
| 286 | export function getPubWorkspaceOrPackageFolderUris(packageFolderOrPubspecUris: Uri[]): Uri[] { |
| 287 | const packageFolderPaths = packageFolderOrPubspecUris |
| 288 | .filter((uri) => uri.scheme === "file") |
| 289 | .map((uri) => fsPath(uri)); |
| 290 | const mappedPaths = getPubWorkspaceOrPackageFolderPaths(packageFolderPaths); |
| 291 | return mappedPaths.map((mappedPath) => Uri.file(mappedPath)); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * If `packageFolderOrPubspecUri` is part of a Pub Workspace, returns the workspace root folder URI. |
no test coverage detected