We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc18de commit 67671f4Copy full SHA for 67671f4
extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt
@@ -49,4 +49,18 @@ class UriUtilsTest {
49
val file = UriUtils.uriToFile(uri)
50
assertEquals(File("/path/to/file"), file)
51
}
52
-}
+
53
+ @Test
54
+ fun testUriToFileWithWSLPath() {
55
+ val uri = "file:///wsl$/Ubuntu/home/user/file.txt"
56
+ val file = UriUtils.uriToFile(uri)
57
+ assertEquals(File("/wsl$/Ubuntu/home/user/file.txt"), file)
58
+ }
59
60
61
+ fun testUriToFileWithWSLLocalhostPath() {
62
+ val uri = "file:///wsl.localhost/Ubuntu/home/user/file.txt"
63
64
+ assertEquals(File("/wsl.localhost/Ubuntu/home/user/file.txt"), file)
65
66
+}
0 commit comments