@@ -248,19 +248,17 @@ index 1e16cde724..0000000000
248
248
- target "12.4.0"
249
249
- runtime "node"
250
250
diff --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
252
252
--- a/src/vs/base/common/network.ts
253
253
+++ b/src/vs/base/common/network.ts
254
- @@ -94,16 +94,18 @@ class RemoteAuthoritiesImpl {
254
+ @@ -94,16 +94,17 @@ class RemoteAuthoritiesImpl {
255
255
if (host && host.indexOf(':') !== -1) {
256
256
host = `[${host}]`;
257
257
}
258
258
- const port = this._ports[authority];
259
259
+ // const port = this._ports[authority];
260
260
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)}`;
264
262
if (typeof connectionToken === 'string') {
265
263
query += `&tkn=${encodeURIComponent(connectionToken)}`;
266
264
}
@@ -1054,7 +1052,7 @@ index 0000000000..0d2e93edae
1054
1052
+ }
1055
1053
diff --git a/src/vs/server/browser/worker.ts b/src/vs/server/browser/worker.ts
1056
1054
new file mode 100644
1057
- index 0000000000..8db1e17c38
1055
+ index 0000000000..a93381631a
1058
1056
--- /dev/null
1059
1057
+++ b/src/vs/server/browser/worker.ts
1060
1058
@@ -0,0 +1,57 @@
@@ -1077,7 +1075,7 @@ index 0000000000..8db1e17c38
1077
1075
+ scheme: self.location.protocol.replace(':', ''),
1078
1076
+ authority: self.location.host,
1079
1077
+ path: self.location.pathname.replace(/\/static\/([^\/]+)\/.*$/, '/static/$1\/'),
1080
- + query: `tar=${encodeURIComponent(module.extensionLocation.fsPath )}`,
1078
+ + query: `tar=${encodeURIComponent(module.extensionLocation.path )}`,
1081
1079
+ });
1082
1080
+ const response = await fetch(fetchUri.toString(true));
1083
1081
+ if (response.status !== 200) {
0 commit comments