Skip to content

Commit 858b042

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 coder#5027.
1 parent d216dc5 commit 858b042

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

patches/integration.diff

+12
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+
@@ -274,6 +274,7 @@ export class WebClientServer {
265+
} : undefined;
266+
const data = (await util.promisify(fs.readFile)(filePath)).toString()
267+
.replace('{{WORKBENCH_WEB_CONFIGURATION}}', escapeAttribute(JSON.stringify({
268+
+ codeServerVersion: this._productService.codeServerVersion,
269+
remoteAuthority,
270+
_wrapWebWorkerExtHostInIframe,
271+
developmentOptions: { enableSmokeTestDriver: this._environmentService.driverHandle === 'web' ? true : undefined },

0 commit comments

Comments
 (0)