(unknownPath: string)
| 45 | } |
| 46 | |
| 47 | private toPathKind(unknownPath: string): PathKind { |
| 48 | const pathPosix: PathKind = PathPosix.getInstance(); |
| 49 | const pathWin32: PathKind = PathWin32.getInstance(); |
| 50 | |
| 51 | if (pathPosix.isAbsolute(unknownPath) || |
| 52 | (this.remoteCwd && pathPosix.isAbsolute(this.remoteCwd))) |
| 53 | { |
| 54 | return pathPosix; |
| 55 | } else { |
| 56 | return pathWin32; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | private pathMatch(key: keyof Mapping, caseSensitive: boolean, path: string): Mapping | undefined { |
| 61 | for (const mapping of this.sortedMappings[key]) { |
no test coverage detected