@@ -12,15 +12,15 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
1212===================================================================
1313--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
1414+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
15- @@ -333 ,8 +333 ,11 @@ export class WebClientServer {
16- scopes: [['user:email'], ['repo']]
17- } : undefined;
15+ @@ -366 ,8 +366 ,11 @@ export class WebClientServer {
16+ linkProtectionTrustedDomains.push(...this._productService.linkProtectionTrustedDomains);
17+ }
1818
1919+ const appName = this._environmentService.args['app-name'];
20- const productConfiguration = {
21- embedderIdentifier: 'server-distro' ,
20+ const productConfiguration: Partial<Mutable<IProductConfiguration>> = {
21+ codeServerVersion: this._productService.codeServerVersion ,
2222+ nameShort: appName,
2323+ nameLong: appName,
24- extensionsGallery: this._webExtensionResourceUrlTemplate && this._productService.extensionsGallery ? {
25- ... this._productService.extensionsGallery ,
26- resourceUrlTemplate : this._webExtensionResourceUrlTemplate.with({
24+ rootEndpoint: rootBase,
25+ updateEndpoint: ! this._environmentService.args['disable-update-check'] ? rootBase + '/update/check' : undefined ,
26+ logoutEndpoint : this._environmentService.args['auth'] && this._environmentService.args['auth'] !== "none" ? rootBase + '/logout' : undefined,
0 commit comments