@@ -248,19 +248,17 @@ index 1e16cde724..0000000000
248248- target "12.4.0"
249249- runtime "node"
250250diff --git a/src/vs/base/common/network.ts b/src/vs/base/common/network.ts
251- index e4546b2cf6..9df12239fb 100644
251+ index e4546b2cf6..ad2c544e89 100644
252252--- a/src/vs/base/common/network.ts
253253+++ b/src/vs/base/common/network.ts
254- @@ -94,16 +94,18 @@ class RemoteAuthoritiesImpl {
254+ @@ -94,16 +94,17 @@ class RemoteAuthoritiesImpl {
255255 if (host && host.indexOf(':') !== -1) {
256256 host = `[${host}]`;
257257 }
258258- const port = this._ports[authority];
259259+ // const port = this._ports[authority];
260260 const connectionToken = this._connectionTokens[authority];
261- - let query = `path=${encodeURIComponent(uri.path)}`;
262- + // NOTE@coder: Use fsPath for Windows support.
263- + let query = `path=${encodeURIComponent(uri.fsPath)}`;
261+ let query = `path=${encodeURIComponent(uri.path)}`;
264262 if (typeof connectionToken === 'string') {
265263 query += `&tkn=${encodeURIComponent(connectionToken)}`;
266264 }
@@ -1054,7 +1052,7 @@ index 0000000000..0d2e93edae
10541052+ }
10551053diff --git a/src/vs/server/browser/worker.ts b/src/vs/server/browser/worker.ts
10561054new file mode 100644
1057- index 0000000000..8db1e17c38
1055+ index 0000000000..a93381631a
10581056--- /dev/null
10591057+++ b/src/vs/server/browser/worker.ts
10601058@@ -0,0 +1,57 @@
@@ -1077,7 +1075,7 @@ index 0000000000..8db1e17c38
10771075+ scheme: self.location.protocol.replace(':', ''),
10781076+ authority: self.location.host,
10791077+ path: self.location.pathname.replace(/\/static\/([^\/]+)\/.*$/, '/static/$1\/'),
1080- + query: `tar=${encodeURIComponent(module.extensionLocation.fsPath )}`,
1078+ + query: `tar=${encodeURIComponent(module.extensionLocation.path )}`,
10811079+ });
10821080+ const response = await fetch(fetchUri.toString(true));
10831081+ if (response.status !== 200) {
0 commit comments