(fsPath: string)
| 101 | } |
| 102 | |
| 103 | function isUNC(fsPath: string) { |
| 104 | if (fsPath.length >= 3) { |
| 105 | // Checks \\localhost\shares\ddd |
| 106 | // ^^^ |
| 107 | return ( |
| 108 | isPathSeparator(fsPath.charCodeAt(0)) && |
| 109 | isPathSeparator(fsPath.charCodeAt(1)) && |
| 110 | !isPathSeparator(fsPath.charCodeAt(2)) |
| 111 | ); |
| 112 | } |
| 113 | return false; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Compute the closest relative path of the input uri to the workspace folder(s). |
no test coverage detected