@@ -167,17 +167,19 @@ index 91b3b92678..f76f2c1548 100644
167
167
"extensionAllowedProposedApi": [
168
168
"ms-vscode.vscode-js-profile-table",
169
169
diff --git a/src/vs/base/common/network.ts b/src/vs/base/common/network.ts
170
- index e4546b2cf6..ad2c544e89 100644
170
+ index e4546b2cf6..9df12239fb 100644
171
171
--- a/src/vs/base/common/network.ts
172
172
+++ b/src/vs/base/common/network.ts
173
- @@ -94,16 +94,17 @@ class RemoteAuthoritiesImpl {
173
+ @@ -94,16 +94,18 @@ class RemoteAuthoritiesImpl {
174
174
if (host && host.indexOf(':') !== -1) {
175
175
host = `[${host}]`;
176
176
}
177
177
- const port = this._ports[authority];
178
178
+ // const port = this._ports[authority];
179
179
const connectionToken = this._connectionTokens[authority];
180
- let query = `path=${encodeURIComponent(uri.path)}`;
180
+ - let query = `path=${encodeURIComponent(uri.path)}`;
181
+ + // NOTE@coder: Use fsPath for Windows support.
182
+ + let query = `path=${encodeURIComponent(uri.fsPath)}`;
181
183
if (typeof connectionToken === 'string') {
182
184
query += `&tkn=${encodeURIComponent(connectionToken)}`;
183
185
}
@@ -310,7 +312,7 @@ index 2c64061da7..c0ef8faedd 100644
310
312
// Do nothing. If we can't read the file we have no
311
313
// language pack config.
312
314
diff --git a/src/vs/code/browser/workbench/workbench.ts b/src/vs/code/browser/workbench/workbench.ts
313
- index 556c03a03a..3b2a34e60d 100644
315
+ index 556c03a03a..ac5d23ed8e 100644
314
316
--- a/src/vs/code/browser/workbench/workbench.ts
315
317
+++ b/src/vs/code/browser/workbench/workbench.ts
316
318
@@ -12,6 +12,8 @@ import { request } from 'vs/base/parts/request/browser/request';
@@ -349,7 +351,7 @@ index 556c03a03a..3b2a34e60d 100644
349
351
350
352
- const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
351
353
+ const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = {
352
- + webviewEndpoint: `${window.location.origin}${window.location.pathname.replace(/\/+$/, '')}/webview/ `,
354
+ + webviewEndpoint: `${window.location.origin}${window.location.pathname.replace(/\/+$/, '')}/webview`,
353
355
+ ...JSON.parse(configElementAttribute),
354
356
+ };
355
357
+
@@ -971,7 +973,7 @@ index 0000000000..0d2e93edae
971
973
+ }
972
974
diff --git a/src/vs/server/browser/worker.ts b/src/vs/server/browser/worker.ts
973
975
new file mode 100644
974
- index 0000000000..a93381631a
976
+ index 0000000000..8db1e17c38
975
977
--- /dev/null
976
978
+++ b/src/vs/server/browser/worker.ts
977
979
@@ -0,0 +1,57 @@
@@ -994,7 +996,7 @@ index 0000000000..a93381631a
994
996
+ scheme: self.location.protocol.replace(':', ''),
995
997
+ authority: self.location.host,
996
998
+ path: self.location.pathname.replace(/\/static\/([^\/]+)\/.*$/, '/static/$1\/'),
997
- + query: `tar=${encodeURIComponent(module.extensionLocation.path )}`,
999
+ + query: `tar=${encodeURIComponent(module.extensionLocation.fsPath )}`,
998
1000
+ });
999
1001
+ const response = await fetch(fetchUri.toString(true));
1000
1002
+ if (response.status !== 200) {
0 commit comments