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