@@ -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- @@ -242 ,7 +242 ,9 @@ class RemoteAuthoritiesImpl {
13+ @@ -245 ,7 +245 ,9 @@ class RemoteAuthoritiesImpl {
1414 return URI.from({
1515 scheme: platform.isWeb ? this._preferredWebSchema : Schemas.vscodeRemoteResource,
1616 authority: `${host}:${port}`,
@@ -111,7 +111,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
111111===================================================================
112112--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
113113+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
114- @@ -245 ,7 +245 ,9 @@ export class WebClientServer {
114+ @@ -246 ,7 +246 ,9 @@ export class WebClientServer {
115115 };
116116
117117 // Prefix routes with basePath for clients
@@ -122,7 +122,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
122122
123123 const queryConnectionToken = parsedUrl.query[connectionTokenQueryName];
124124 if (typeof queryConnectionToken === 'string') {
125- @@ -284 ,10 +286 ,14 @@ export class WebClientServer {
125+ @@ -285 ,10 +287 ,14 @@ export class WebClientServer {
126126 };
127127
128128 const useTestResolver = (!this._environmentService.isBuilt && this._environmentService.args['use-test-resolver']);
@@ -138,15 +138,15 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
138138 );
139139 if (!remoteAuthority) {
140140 return serveError(req, res, 400, `Bad request.`);
141- @@ -334 ,6 +340 ,7 @@ export class WebClientServer {
141+ @@ -335 ,6 +341 ,7 @@ export class WebClientServer {
142142
143143 const productConfiguration: Partial<Mutable<IProductConfiguration>> = {
144144 codeServerVersion: this._productService.codeServerVersion,
145145+ rootEndpoint: rootBase,
146146 embedderIdentifier: 'server-distro',
147147 extensionsGallery: this._webExtensionResourceUrlTemplate && this._productService.extensionsGallery ? {
148148 ...this._productService.extensionsGallery,
149- @@ -387 ,7 +394 ,9 @@ export class WebClientServer {
149+ @@ -388 ,7 +395 ,9 @@ export class WebClientServer {
150150 WORKBENCH_AUTH_SESSION: authSessionInfo ? asJSON(authSessionInfo) : '',
151151 WORKBENCH_WEB_BASE_URL: staticRoute,
152152 WORKBENCH_NLS_URL,
@@ -157,7 +157,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
157157 };
158158
159159 // DEV ---------------------------------------------------------------------------------------
160- @@ -424 ,7 +433 ,7 @@ export class WebClientServer {
160+ @@ -425 ,7 +434 ,7 @@ export class WebClientServer {
161161 'default-src \'self\';',
162162 'img-src \'self\' https: data: blob:;',
163163 'media-src \'self\';',
@@ -166,7 +166,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
166166 'child-src \'self\';',
167167 `frame-src 'self' https://*.vscode-cdn.net data:;`,
168168 'worker-src \'self\' data: blob:;',
169- @@ -497 ,3 +506 ,70 @@ export class WebClientServer {
169+ @@ -498 ,3 +507 ,70 @@ export class WebClientServer {
170170 return void res.end(data);
171171 }
172172 }
0 commit comments