@@ -10,7 +10,7 @@ Index: code-server/lib/vscode/src/vs/base/common/network.ts
1010===================================================================
1111--- code-server.orig/lib/vscode/src/vs/base/common/network.ts
1212+++ code-server/lib/vscode/src/vs/base/common/network.ts
13- @@ -205 ,7 +205 ,9 @@ class RemoteAuthoritiesImpl {
13+ @@ -212 ,7 +212 ,9 @@ class RemoteAuthoritiesImpl {
1414 return URI.from({
1515 scheme: platform.isWeb ? this._preferredWebSchema : Schemas.vscodeRemoteResource,
1616 authority: `${host}:${port}`,
@@ -140,11 +140,11 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
140140+ const base = relativeRoot(getOriginalUrl(req))
141141+ const vscodeBase = relativePath(getOriginalUrl(req))
142142+
143- const productConfiguration = <Partial<IProductConfiguration>> {
143+ const productConfiguration = {
144144 codeServerVersion: this._productService.codeServerVersion,
145145+ rootEndpoint: base,
146146 embedderIdentifier: 'server-distro',
147- extensionsGallery: this._webExtensionResourceUrlTemplate ? {
147+ extensionsGallery: this._webExtensionResourceUrlTemplate && this._productService.extensionsGallery ? {
148148 ...this._productService.extensionsGallery,
149149@@ -343,8 +346,10 @@ export class WebClientServer {
150150 const values: { [key: string]: string } = {
0 commit comments