(packageFolderOrPubspecUri: Uri)
| 297 | * Otherwise (or if there is no workspace root, or URI is not file-scheme), returns `packageFolderOrPubspecUri`. |
| 298 | */ |
| 299 | export function getPubWorkspaceFolderOrPackageFolderUri(packageFolderOrPubspecUri: Uri): Uri { |
| 300 | return packageFolderOrPubspecUri.scheme === "file" |
| 301 | ? Uri.file(getPubWorkspaceFolderOrPackageFolderPath(fsPath(packageFolderOrPubspecUri))) |
| 302 | : packageFolderOrPubspecUri; |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * If `packageFolderOrPubspecPath` is part of a Pub Workspace, returns the workspace root folder. |
no test coverage detected