@@ -31,6 +31,9 @@ func TestDocumentURIToFileName(t *testing.T) {
3131 {"file://localhost/c%24/GitDevelopment/express" , "//localhost/c$/GitDevelopment/express" },
3232 {"file:///c%3A/test%20with%20%2525/c%23code" , "c:/test with %25/c#code" },
3333
34+ {"zip:///path/to/archive.zip/file.ts" , "/path/to/archive.zip/file.ts" },
35+ {"zip:///d:/work/tsgo932/lib/archive.zip/utils.ts" , "d:/work/tsgo932/lib/archive.zip/utils.ts" },
36+
3437 {"untitled:Untitled-1" , "^/untitled/ts-nul-authority/Untitled-1" },
3538 {"untitled:Untitled-1#fragment" , "^/untitled/ts-nul-authority/Untitled-1#fragment" },
3639 {"untitled:c:/Users/jrieken/Code/abc.txt" , "^/untitled/ts-nul-authority/c:/Users/jrieken/Code/abc.txt" },
@@ -69,6 +72,9 @@ func TestFileNameToDocumentURI(t *testing.T) {
6972 {"//localhost/c$/GitDevelopment/express" , "file://localhost/c%24/GitDevelopment/express" },
7073 {"c:/test with %25/c#code" , "file:///c%3A/test%20with%20%2525/c%23code" },
7174
75+ {"/path/to/archive.zip/file.ts" , "zip:///path/to/archive.zip/file.ts" },
76+ {"d:/work/tsgo932/lib/archive.zip/utils.ts" , "zip:///d%3A/work/tsgo932/lib/archive.zip/utils.ts" },
77+
7278 {"^/untitled/ts-nul-authority/Untitled-1" , "untitled:Untitled-1" },
7379 {"^/untitled/ts-nul-authority/c:/Users/jrieken/Code/abc.txt" , "untitled:c:/Users/jrieken/Code/abc.txt" },
7480 {"^/untitled/ts-nul-authority///wsl%2Bubuntu/home/jabaile/work/TypeScript-go/newfile.ts" , "untitled://wsl%2Bubuntu/home/jabaile/work/TypeScript-go/newfile.ts" },
0 commit comments