@@ -185,10 +185,10 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
185185 settingsSyncOptions: !this._environmentService.isBuilt && this._environmentService.args['enable-sync'] ? { enabled: true } : undefined,
186186 productConfiguration: <Partial<IProductConfiguration>>{
187187+ rootEndpoint: base,
188+ embedderIdentifier: 'server-distro',
188189 extensionsGallery: this._webExtensionResourceUrlTemplate ? {
189190 ...this._productService.extensionsGallery,
190- 'resourceUrlTemplate': this._webExtensionResourceUrlTemplate.with({
191- @@ -289,7 +295,9 @@ export class WebClientServer {
191+ @@ -290,7 +296,9 @@ export class WebClientServer {
192192 } : undefined
193193 }
194194 })))
@@ -199,7 +199,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
199199
200200 const cspDirectives = [
201201 'default-src \'self\';',
202- @@ -368 ,3 +376 ,70 @@ export class WebClientServer {
202+ @@ -369 ,3 +377 ,70 @@ export class WebClientServer {
203203 return res.end(data);
204204 }
205205 }
@@ -286,19 +286,19 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
286286===================================================================
287287--- code-server.orig/lib/vscode/src/vs/code/browser/workbench/workbench.ts
288288+++ 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
290290 });
291291 }
292292
293293+ path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
294294 return URI.parse(window.location.href).with({ path, query });
295295 }
296296
297- @@ -515 ,7 +516 ,7 @@ function doCreateUri(path: string, query
297+ @@ -493 ,7 +494 ,7 @@ function doCreateUri(path: string, query
298298 if (!configElement || !configElementAttribute) {
299299 throw new Error('Missing web configuration element');
300300 }
301- - const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
301+ - const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents; workspaceUri?: UriComponents } = JSON.parse(configElementAttribute);
302302+ const config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = { ...JSON.parse(configElementAttribute), remoteAuthority: location.host }
303303
304304 // Create workbench
0 commit comments