Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.22.1
24.22.3
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,33 @@ Code v99.99.999

## Unreleased

Code v1.149.0

### Added

- New flag `--cookie-max-age-seconds` that allows persisting the cookie beyond a
single session.

### Changed

- Update to Code 1.149.0
- Paths proxied through the path proxy (`/proxy/{port number}/{path}`) will now
be normalized before being proxied to the application on that port.
- When opening a file from an external command line, code-server looks for an
existing window that has a folder open which contains that file and opens it
there. If no windows contain the file it would error. Now, before erroring
code-server will first check if there is a window open that has no folder
open, and use that window as a fallback to open the file.

### Fixed

- Fix a race when opening a remote workspace for the first time that caused the
file explorer to be empty.
- Quoted hosts in the `Forwarded` header will now work.
- Fix a race that could cause code-server to think it was inactive despite
having web sockets actively connected. This affected both the sentinel file
and the idle timeout.

## [4.146.0](https://github.com/coder/code-server/releases/tag/v4.146.0) - 2026-11-20

Code v1.146.0
Expand Down
2 changes: 0 additions & 2 deletions ci/build/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ bundle_vscode() {

# Include global extension dependencies as well.
jq 'del(.devDependencies)' "$VSCODE_SRC_PATH/extensions/package.json" > "$VSCODE_OUT_PATH/extensions/package.json"
rsync "$VSCODE_SRC_PATH/extensions/pnpm-lock.yaml" "$VSCODE_OUT_PATH/extensions/pnpm-lock.yaml"
rsync "$VSCODE_SRC_PATH/extensions/pnpm-workspace.yaml" "$VSCODE_OUT_PATH/extensions/pnpm-workspace.yaml"
}

main "$@"
2 changes: 1 addition & 1 deletion ci/build/build-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ EOF
) > product.json


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

pnpm run gulp core-ci
pnpm run gulp "vscode-reh-web-$VSCODE_TARGET${MINIFY:+-min}-ci"
Expand Down
2 changes: 1 addition & 1 deletion lib/vscode
Submodule vscode updated 6994 files
6 changes: 3 additions & 3 deletions patches/app-name.diff
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ Index: code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
===================================================================
--- code-server.orig/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
+++ code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
@@ -40,6 +40,7 @@ export const serverOptions: OptionDescri
@@ -38,6 +38,7 @@ export const serverOptions: OptionDescri
'disable-getting-started-override': { type: 'boolean' },
'locale': { type: 'string' },
'link-protection-trusted-domains': { type: 'string[]' },
+ 'app-name': { type: 'string' },

/* ----- server setup ----- */

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

Expand Down
25 changes: 12 additions & 13 deletions patches/base-path.diff
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
===================================================================
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
@@ -146,7 +146,7 @@ export function createWorkbenchContentSe
@@ -147,7 +147,7 @@ export function createWorkbenchContentSe
'default-src \'self\';',
'img-src \'self\' https: data: blob:;',
'media-src \'self\';',
Expand All @@ -120,19 +120,18 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
'child-src \'self\';',
`frame-src 'self' https://*.vscode-cdn.net data:;`,
'worker-src \'self\' data: blob:;',
@@ -307,8 +307,10 @@ export class WebClientServer {
};

@@ -331,7 +331,9 @@ export class WebClientServer {
*/
private async _handleRoot(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: URL): Promise<void> {
// Prefix routes with basePath for clients
- const basePath = this._getEffectiveBasePath(req);
+ const rootBase = relativeRoot(getOriginalUrl(req))
+ const vscodeBase = relativePath(getOriginalUrl(req))
const forwardedPrefix = getFirstHeader('x-forwarded-prefix');
- const basePath = forwardedPrefix && isSafeBasePath(forwardedPrefix) ? forwardedPrefix : this._basePath;
+ const basePath = vscodeBase || (forwardedPrefix && isSafeBasePath(forwardedPrefix) ? forwardedPrefix : this._basePath);
+ const basePath = vscodeBase || this._getEffectiveBasePath(req);

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

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

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

// DEV ---------------------------------------------------------------------------------------
@@ -542,3 +551,70 @@ export class WebClientServer {
@@ -578,3 +587,70 @@ export class WebClientServer {
return void res.end(data);
}
}
Expand Down Expand Up @@ -242,7 +241,7 @@ Index: code-server/lib/vscode/src/vs/base/common/product.ts
===================================================================
--- code-server.orig/lib/vscode/src/vs/base/common/product.ts
+++ code-server/lib/vscode/src/vs/base/common/product.ts
@@ -98,6 +98,7 @@ export interface IDictationRuntimeProduc
@@ -118,6 +118,7 @@ export interface IDictationRuntimeProduc

export interface IProductConfiguration {
readonly codeServerVersion?: string
Expand Down
2 changes: 1 addition & 1 deletion patches/cli-window-open.diff
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTe
===================================================================
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
+++ code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
@@ -108,10 +108,14 @@ class RemoteTerminalBackend extends Base
@@ -109,10 +109,14 @@ class RemoteTerminalBackend extends Base
}
const reqId = e.reqId;
const commandId = e.commandId;
Expand Down
6 changes: 3 additions & 3 deletions patches/clipboard.diff
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Index: code-server/lib/vscode/src/vs/workbench/api/browser/mainThreadCLICommands
import { CommandsRegistry, ICommandService } from '../../../platform/commands/common/commands.js';
import { IExtensionGalleryService, IExtensionManagementService } from '../../../platform/extensionManagement/common/extensionManagement.js';
import { ExtensionManagementCLI } from '../../../platform/extensionManagement/common/extensionManagementCLI.js';
@@ -96,6 +97,11 @@ CommandsRegistry.registerCommand('_remot
@@ -98,6 +99,11 @@ CommandsRegistry.registerCommand('_remot

});

Expand Down Expand Up @@ -65,7 +65,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTe
===================================================================
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
+++ code-server/lib/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.ts
@@ -99,7 +99,7 @@ class RemoteTerminalBackend extends Base
@@ -100,7 +100,7 @@ class RemoteTerminalBackend extends Base
}
}));

Expand All @@ -78,7 +78,7 @@ Index: code-server/lib/vscode/src/vs/platform/environment/common/argv.ts
===================================================================
--- code-server.orig/lib/vscode/src/vs/platform/environment/common/argv.ts
+++ code-server/lib/vscode/src/vs/platform/environment/common/argv.ts
@@ -148,6 +148,7 @@ export interface NativeParsedArgs {
@@ -149,6 +149,7 @@ export interface NativeParsedArgs {
'disable-chromium-sandbox'?: boolean;
sandbox?: boolean;
'enable-coi'?: boolean;
Expand Down
163 changes: 0 additions & 163 deletions patches/copilot.diff

This file was deleted.

8 changes: 4 additions & 4 deletions patches/csp-hashes.diff
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index
<meta charset="UTF-8">

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

<!-- Disable pinch zooming -->
<meta name="viewport"
Expand All @@ -28,8 +28,8 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
===================================================================
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
@@ -114,7 +114,7 @@ const APP_ROOT = dirname(FileAccess.asFi
const STATIC_PATH = `/static`;
@@ -115,7 +115,7 @@ const STATIC_PATH = `/static`;
const MANIFEST_PATH = `/resources/server/manifest.json`;
const CALLBACK_PATH = `/callback`;
const WEB_EXTENSION_PATH = `/web-extension-resource`;
-const webWorkerExtensionHostIframeScriptSHA = 'sha256-daEgfo2VIXpx2Np71KqCCbkeQwv+68vPrx54XRcbdcs=';
Expand Down
2 changes: 1 addition & 1 deletion patches/disable-builtin-ext-update.diff
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/extensions/browser/extens
===================================================================
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
+++ code-server/lib/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
@@ -403,6 +403,10 @@ export class Extension implements IExten
@@ -424,6 +424,10 @@ export class Extension implements IExten
if (this.type === ExtensionType.System && this.productService.quality === 'stable' && !this.productService.builtInExtensionsEnabledWithAutoUpdates?.some(id => id.toLowerCase() === this.identifier.id.toLowerCase())) {
return false;
}
Expand Down
Loading