@@ -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 }
@@ -1067,7 +1065,7 @@ index 0000000000..0d2e93edae
10671065+ }
10681066diff --git a/src/vs/server/browser/worker.ts b/src/vs/server/browser/worker.ts
10691067new file mode 100644
1070- index 0000000000..8db1e17c38
1068+ index 0000000000..a93381631a
10711069--- /dev/null
10721070+++ b/src/vs/server/browser/worker.ts
10731071@@ -0,0 +1,57 @@
@@ -1090,7 +1088,7 @@ index 0000000000..8db1e17c38
10901088+ scheme: self.location.protocol.replace(':', ''),
10911089+ authority: self.location.host,
10921090+ path: self.location.pathname.replace(/\/static\/([^\/]+)\/.*$/, '/static/$1\/'),
1093- + query: `tar=${encodeURIComponent(module.extensionLocation.fsPath )}`,
1091+ + query: `tar=${encodeURIComponent(module.extensionLocation.path )}`,
10941092+ });
10951093+ const response = await fetch(fetchUri.toString(true));
10961094+ if (response.status !== 200) {
0 commit comments