Skip to content

Commit 8d79bc2

Browse files
committed
Add code-server version to product configuration
Before 1.64 the entire product configuration was sent to the client but that was removed so we have to add anything we want to use on the client, like the code-server version (used in the about dialog). Fixes #5027.
1 parent d216dc5 commit 8d79bc2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

patches/integration.diff

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,15 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.html
257257
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
258258
<link data-name="vs/workbench/workbench.web.main" rel="stylesheet" href="./static/out/vs/workbench/workbench.web.main.css">
259259

260+
Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
261+
===================================================================
262+
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
263+
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
264+
@@ -279,6 +279,7 @@ export class WebClientServer {
265+
developmentOptions: { enableSmokeTestDriver: this._environmentService.driverHandle === 'web' ? true : undefined },
266+
settingsSyncOptions: !this._environmentService.isBuilt && this._environmentService.args['enable-sync'] ? { enabled: true } : undefined,
267+
productConfiguration: <Partial<IProductConfiguration>>{
268+
+ codeServerVersion: this._productService.codeServerVersion,
269+
embedderIdentifier: 'server-distro',
270+
extensionsGallery: this._webExtensionResourceUrlTemplate ? {
271+
...this._productService.extensionsGallery,

0 commit comments

Comments
 (0)