@@ -185,10 +185,10 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
185
185
settingsSyncOptions: !this._environmentService.isBuilt && this._environmentService.args['enable-sync'] ? { enabled: true } : undefined,
186
186
productConfiguration: <Partial<IProductConfiguration>>{
187
187
+ rootEndpoint: base,
188
+ embedderIdentifier: 'server-distro',
188
189
extensionsGallery: this._webExtensionResourceUrlTemplate ? {
189
190
...this._productService.extensionsGallery,
190
- 'resourceUrlTemplate': this._webExtensionResourceUrlTemplate.with({
191
- @@ -289,7 +295,9 @@ export class WebClientServer {
191
+ @@ -290,7 +296,9 @@ export class WebClientServer {
192
192
} : undefined
193
193
}
194
194
})))
@@ -199,7 +199,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
199
199
200
200
const cspDirectives = [
201
201
'default-src \'self\';',
202
- @@ -368 ,3 +376 ,70 @@ export class WebClientServer {
202
+ @@ -369 ,3 +377 ,70 @@ export class WebClientServer {
203
203
return res.end(data);
204
204
}
205
205
}
@@ -286,19 +286,19 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
286
286
===================================================================
287
287
--- code-server.orig/lib/vscode/src/vs/code/browser/workbench/workbench.ts
288
288
+++ code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
289
- @@ -504 ,6 +504 ,7 @@ function doCreateUri(path: string, query
289
+ @@ -482 ,6 +482 ,7 @@ function doCreateUri(path: string, query
290
290
});
291
291
}
292
292
293
293
+ path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
294
294
return URI.parse(window.location.href).with({ path, query });
295
295
}
296
296
297
- @@ -515 ,7 +516 ,7 @@ function doCreateUri(path: string, query
297
+ @@ -493 ,7 +494 ,7 @@ function doCreateUri(path: string, query
298
298
if (!configElement || !configElementAttribute) {
299
299
throw new Error('Missing web configuration element');
300
300
}
301
- - const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
301
+ - const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents; workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
302
302
+ const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = { ...JSON.parse(configElementAttribute), remoteAuthority: location.host }
303
303
304
304
// Create workbench
0 commit comments