Skip to content

Commit 12bb79a

Browse files
cdrcicode-asher
authored andcommitted
Update Code to 1.149.0
Notable changes: - It seems we no longer need the Copilot patch; the default task appears to only keep the necessary dependencies now and handles the native shims. - fs import was removed from serverServices.ts, use pfs instead of adding back the import. Since it does not have `stat`, use `exists`.
1 parent 0b85b9e commit 12bb79a

29 files changed

Lines changed: 172 additions & 311 deletions

‎.node-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.22.1
1+
24.22.3

‎CHANGELOG.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,33 @@ Code v99.99.999
2222

2323
## Unreleased
2424

25+
Code v1.149.0
26+
27+
### Added
28+
29+
- New flag `--cookie-max-age-seconds` that allows persisting the cookie beyond a
30+
single session.
31+
32+
### Changed
33+
34+
- Update to Code 1.149.0
35+
- Paths proxied through the path proxy (`/proxy/{port number}/{path}`) will now
36+
be normalized before being proxied to the application on that port.
37+
- When opening a file from an external command line, code-server looks for an
38+
existing window that has a folder open which contains that file and opens it
39+
there. If no windows contain the file it would error. Now, before erroring
40+
code-server will first check if there is a window open that has no folder
41+
open, and use that window as a fallback to open the file.
42+
43+
### Fixed
44+
45+
- Fix a race when opening a remote workspace for the first time that caused the
46+
file explorer to be empty.
47+
- Quoted hosts in the `Forwarded` header will now work.
48+
- Fix a race that could cause code-server to think it was inactive despite
49+
having web sockets actively connected. This affected both the sentinel file
50+
and the idle timeout.
51+
2552
## [4.146.0](https://github.com/coder/code-server/releases/tag/v4.146.0) - 2026-11-20
2653

2754
Code v1.146.0

‎ci/build/build-vscode.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ EOF
119119
) > product.json
120120

121121

122-
VSCODE_QUALITY=stable pnpm run gulp compile-copilot-extension-full-build
122+
VSCODE_QUALITY=stable pnpm run gulp compile-copilot-extension-build
123123

124124
pnpm run gulp core-ci
125125
pnpm run gulp "vscode-reh-web-$VSCODE_TARGET${MINIFY:+-min}-ci"

‎lib/vscode‎

Submodule vscode updated 6994 files

‎patches/app-name.diff‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Index: code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
1212
===================================================================
1313
--- code-server.orig/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
1414
+++ code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
15-
@@ -40,6 +40,7 @@ export const serverOptions: OptionDescri
15+
@@ -38,6 +38,7 @@ export const serverOptions: OptionDescri
1616
'disable-getting-started-override': { type: 'boolean' },
1717
'locale': { type: 'string' },
1818
'link-protection-trusted-domains': { type: 'string[]' },
1919
+ 'app-name': { type: 'string' },
2020

2121
/* ----- server setup ----- */
2222

23-
@@ -140,6 +141,7 @@ export interface ServerParsedArgs {
23+
@@ -139,6 +140,7 @@ export interface ServerParsedArgs {
2424
'disable-getting-started-override'?: boolean,
2525
'locale'?: string
2626
'link-protection-trusted-domains'?: string[],
@@ -32,7 +32,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
3232
===================================================================
3333
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
3434
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
35-
@@ -407,8 +407,11 @@ export class WebClientServer {
35+
@@ -430,8 +430,11 @@ export class WebClientServer {
3636
linkProtectionTrustedDomains.push(...this._productService.linkProtectionTrustedDomains);
3737
}
3838

‎patches/base-path.diff‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
@@ -146,7 +146,7 @@ export function createWorkbenchContentSe
114+
@@ -147,7 +147,7 @@ export function createWorkbenchContentSe
115115
'default-src \'self\';',
116116
'img-src \'self\' https: data: blob:;',
117117
'media-src \'self\';',
@@ -120,19 +120,18 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
120120
'child-src \'self\';',
121121
`frame-src 'self' https://*.vscode-cdn.net data:;`,
122122
'worker-src \'self\' data: blob:;',
123-
@@ -307,8 +307,10 @@ export class WebClientServer {
124-
};
125-
123+
@@ -331,7 +331,9 @@ export class WebClientServer {
124+
*/
125+
private async _handleRoot(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: URL): Promise<void> {
126126
// Prefix routes with basePath for clients
127+
- const basePath = this._getEffectiveBasePath(req);
127128
+ const rootBase = relativeRoot(getOriginalUrl(req))
128129
+ const vscodeBase = relativePath(getOriginalUrl(req))
129-
const forwardedPrefix = getFirstHeader('x-forwarded-prefix');
130-
- const basePath = forwardedPrefix && isSafeBasePath(forwardedPrefix) ? forwardedPrefix : this._basePath;
131-
+ const basePath = vscodeBase || (forwardedPrefix && isSafeBasePath(forwardedPrefix) ? forwardedPrefix : this._basePath);
130+
+ const basePath = vscodeBase || this._getEffectiveBasePath(req);
132131

133132
const queryConnectionTokens = parsedUrl.searchParams.getAll(connectionTokenQueryName);
134133
if (queryConnectionTokens.length === 1) {
135-
@@ -345,10 +347,14 @@ export class WebClientServer {
134+
@@ -368,10 +370,14 @@ export class WebClientServer {
136135
};
137136

138137
const useTestResolver = (!this._environmentService.isBuilt && !!this._environmentService.args['use-test-resolver']);
@@ -143,20 +142,20 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
143142
let remoteAuthority = (
144143
useTestResolver
145144
? 'test+test'
146-
- : (getFirstHeader('x-original-host') || getFirstHeader('x-forwarded-host') || req.headers.host)
145+
- : (this._getFirstHeader(req, 'x-original-host') || this._getFirstHeader(req, 'x-forwarded-host') || req.headers.host)
147146
+ : 'remote'
148147
);
149148
if (!remoteAuthority) {
150149
return serveError(req, res, 400, `Bad request.`);
151-
@@ -395,6 +401,7 @@ export class WebClientServer {
150+
@@ -418,6 +424,7 @@ export class WebClientServer {
152151

153152
const productConfiguration: Partial<Mutable<IProductConfiguration>> = {
154153
codeServerVersion: this._productService.codeServerVersion,
155154
+ rootEndpoint: rootBase,
156155
embedderIdentifier: 'server-distro',
157156
voiceWsUrl: this._productService.voiceWsUrl,
158157
extensionsGallery: this._webExtensionResourceUrlTemplate && this._productService.extensionsGallery ? {
159-
@@ -446,7 +453,9 @@ export class WebClientServer {
158+
@@ -469,7 +476,9 @@ export class WebClientServer {
160159
WORKBENCH_WEB_BASE_URL: staticRoute,
161160
WORKBENCH_NLS_URL,
162161
WORKBENCH_NLS_FALLBACK_URL: `${staticRoute}/out/nls.messages.js`,
@@ -167,7 +166,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
167166
};
168167

169168
// DEV ---------------------------------------------------------------------------------------
170-
@@ -542,3 +551,70 @@ export class WebClientServer {
169+
@@ -578,3 +587,70 @@ export class WebClientServer {
171170
return void res.end(data);
172171
}
173172
}
@@ -242,7 +241,7 @@ Index: code-server/lib/vscode/src/vs/base/common/product.ts
242241
===================================================================
243242
--- code-server.orig/lib/vscode/src/vs/base/common/product.ts
244243
+++ code-server/lib/vscode/src/vs/base/common/product.ts
245-
@@ -98,6 +98,7 @@ export interface IDictationRuntimeProduc
244+
@@ -118,6 +118,7 @@ export interface IDictationRuntimeProduc
246245

247246
export interface IProductConfiguration {
248247
readonly codeServerVersion?: string

‎patches/cli-window-open.diff‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTe
1717
===================================================================
1818
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
1919
+++ code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
20-
@@ -108,10 +108,14 @@ class RemoteTerminalBackend extends Base
20+
@@ -109,10 +109,14 @@ class RemoteTerminalBackend extends Base
2121
}
2222
const reqId = e.reqId;
2323
const commandId = e.commandId;

‎patches/clipboard.diff‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Index: code-server/lib/vscode/src/vs/workbench/api/browser/mainThreadCLICommands
1010
import { CommandsRegistry, ICommandService } from '../../../platform/commands/common/commands.js';
1111
import { IExtensionGalleryService, IExtensionManagementService } from '../../../platform/extensionManagement/common/extensionManagement.js';
1212
import { ExtensionManagementCLI } from '../../../platform/extensionManagement/common/extensionManagementCLI.js';
13-
@@ -96,6 +97,11 @@ CommandsRegistry.registerCommand('_remot
13+
@@ -98,6 +99,11 @@ CommandsRegistry.registerCommand('_remot
1414

1515
});
1616

@@ -65,7 +65,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTe
6565
===================================================================
6666
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
6767
+++ code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
68-
@@ -99,7 +99,7 @@ class RemoteTerminalBackend extends Base
68+
@@ -100,7 +100,7 @@ class RemoteTerminalBackend extends Base
6969
}
7070
}));
7171

@@ -78,7 +78,7 @@ Index: code-server/lib/vscode/src/vs/platform/environment/common/argv.ts
7878
===================================================================
7979
--- code-server.orig/lib/vscode/src/vs/platform/environment/common/argv.ts
8080
+++ code-server/lib/vscode/src/vs/platform/environment/common/argv.ts
81-
@@ -148,6 +148,7 @@ export interface NativeParsedArgs {
81+
@@ -149,6 +149,7 @@ export interface NativeParsedArgs {
8282
'disable-chromium-sandbox'?: boolean;
8383
sandbox?: boolean;
8484
'enable-coi'?: boolean;

‎patches/copilot.diff‎

Lines changed: 0 additions & 163 deletions
This file was deleted.

‎patches/csp-hashes.diff‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index
66
<meta charset="UTF-8">
77

88
<meta http-equiv="Content-Security-Policy"
9-
- content="default-src 'none'; script-src 'sha256-29YeDbmHnhN2BgMJKVq7vDCMiuya6rpEctI6SkJFfJc=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
10-
+ content="default-src 'none'; script-src 'sha256-PrK0S1PGjGJseEIewxhvBTIw2x6Ci21IJIkOZ3gFWMg=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
9+
- content="default-src 'none'; script-src 'sha256-97WXP4i2DCe9NvOvmdswZ6mW9H6FFmvxaldj0ljQcrs=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
10+
+ content="default-src 'none'; script-src 'sha256-VBjXCqpatjNeC5+MxpODxz0CVabmhhsAMMAkN9wD6N0=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
1111

1212
<!-- Disable pinch zooming -->
1313
<meta name="viewport"
@@ -28,8 +28,8 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
2828
===================================================================
2929
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
3030
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
31-
@@ -114,7 +114,7 @@ const APP_ROOT = dirname(FileAccess.asFi
32-
const STATIC_PATH = `/static`;
31+
@@ -115,7 +115,7 @@ const STATIC_PATH = `/static`;
32+
const MANIFEST_PATH = `/resources/server/manifest.json`;
3333
const CALLBACK_PATH = `/callback`;
3434
const WEB_EXTENSION_PATH = `/web-extension-resource`;
3535
-const webWorkerExtensionHostIframeScriptSHA = 'sha256-daEgfo2VIXpx2Np71KqCCbkeQwv+68vPrx54XRcbdcs=';

0 commit comments

Comments
 (0)