(filepath: string, n: number)
| 176 | // Only used when working with system paths and relative paths |
| 177 | // Since doesn't account for URI segements before workspace |
| 178 | export function getLastNPathParts(filepath: string, n: number): string { |
| 179 | if (n <= 0) { |
| 180 | return ""; |
| 181 | } |
| 182 | return filepath.split(/[\\/]/).slice(-n).join("/"); |
| 183 | } |
| 184 | |
| 185 | export function getUriDescription(uri: string, dirUriCandidates: string[]) { |
| 186 | const { relativePathOrBasename, foundInDir } = findUriInDirs( |
no outgoing calls
no test coverage detected