(uri: string, ...pathSegments: string[])
| 116 | } |
| 117 | |
| 118 | export function joinPathsToUri(uri: string, ...pathSegments: string[]) { |
| 119 | let baseUri = uri; |
| 120 | if (baseUri.at(-1) !== "/") { |
| 121 | baseUri += "/"; |
| 122 | } |
| 123 | const segments = pathSegments.map((segment) => pathToUriPathSegment(segment)); |
| 124 | return URI.resolve(baseUri, segments.join("/")); |
| 125 | } |
| 126 | |
| 127 | export function joinEncodedUriPathSegmentToUri( |
| 128 | uri: string, |
no test coverage detected