Skip to content

Commit 4d56f8a

Browse files
committed
[WIP] Fix UNC path on Windows
Fixes #1152 Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent 85de214 commit 4d56f8a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/uriresolver/CacheResourcesManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ public static Path getResourceCachePath(String resourceURI) throws IOException {
309309
}
310310

311311
public static Path getResourceCachePath(URI uri) throws IOException {
312+
// UNC path
313+
if ("file".equals(uri.getScheme())) {
314+
return Path.of(uri);
315+
}
316+
312317
// Eliminate all path traversals
313318
URI normalizedUri = uri.normalize();
314319

0 commit comments

Comments
 (0)