@@ -179,16 +179,16 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
179
179
+ const vscodeBase = relativePath(getOriginalUrl(req))
180
180
const data = (await util.promisify(fs.readFile)(filePath)).toString()
181
181
.replace('{{WORKBENCH_WEB_CONFIGURATION}}', escapeAttribute(JSON.stringify({
182
- remoteAuthority ,
183
- @@ -279 ,6 +284 ,7 @@ export class WebClientServer {
182
+ codeServerVersion: this._productService.codeServerVersion ,
183
+ @@ -280 ,6 +285 ,7 @@ export class WebClientServer {
184
184
developmentOptions: { enableSmokeTestDriver: this._environmentService.driverHandle === 'web' ? true : undefined },
185
185
settingsSyncOptions: !this._environmentService.isBuilt && this._environmentService.args['enable-sync'] ? { enabled: true } : undefined,
186
186
productConfiguration: <Partial<IProductConfiguration>>{
187
187
+ rootEndpoint: base,
188
188
embedderIdentifier: 'server-distro',
189
189
extensionsGallery: this._webExtensionResourceUrlTemplate ? {
190
190
...this._productService.extensionsGallery,
191
- @@ -290 ,7 +296 ,9 @@ export class WebClientServer {
191
+ @@ -291 ,7 +297 ,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
- @@ -369 ,3 +377 ,70 @@ export class WebClientServer {
202
+ @@ -370 ,3 +378 ,70 @@ export class WebClientServer {
203
203
return res.end(data);
204
204
}
205
205
}
0 commit comments