From 8b41915d25547e2edd553bab03ea4cbd621f98c5 Mon Sep 17 00:00:00 2001
From: cdrci <78873720+cdrci@users.noreply.github.com>
Date: Thu, 8 Oct 2026 17:54:47 +1100
Subject: [PATCH] Update Code to 1.141.0 (#8040)
* Update Code to 1.141.0
* Allow pull_request_target
* Add e2e tests for remote storage
* Fix Typescript extension not loading
* Remove unused imports
---
.github/workflows/release.yaml | 9 +
CHANGELOG.md | 17 ++
ci/build/build-vscode.sh | 18 +-
lib/vscode | 2 +-
patches/base-path.diff | 12 +-
patches/display-language.diff | 10 +-
patches/integration.diff | 4 +-
patches/proxy-uri.diff | 4 +-
patches/remote-secret-storage.diff | 18 +-
patches/remote-storage.diff | 168 +++++++++++++++---
patches/series | 2 +-
.../extensions/test-extension/extension.ts | 31 +++-
.../extensions/test-extension/package.json | 10 ++
test/e2e/models/CodeServer.ts | 9 +-
test/e2e/settings.test.ts | 2 -
test/e2e/storage.test.ts | 61 +++++++
test/e2e/typescript.test.ts | 19 ++
17 files changed, 338 insertions(+), 58 deletions(-)
create mode 100644 test/e2e/storage.test.ts
create mode 100644 test/e2e/typescript.test.ts
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 569407d58..7d24603a9 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -79,6 +79,9 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
with:
submodules: true
+ # When an update/ branch is merged, a release is automatically created
+ # which requires secrets.
+ allow-unsafe-pr-checkout: true
- run: quilt push -a
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
with:
@@ -173,6 +176,9 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
with:
submodules: true
+ # When an update/ branch is merged, a release is automatically created
+ # which requires secrets.
+ allow-unsafe-pr-checkout: true
- run: quilt push -a
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
with:
@@ -233,6 +239,9 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
with:
submodules: true
+ # When an update/ branch is merged, a release is automatically created
+ # which requires secrets.
+ allow-unsafe-pr-checkout: true
# quilt has no windows build. The patches are ordinary -p1 diffs
# against the repository root, so git applies them in series order.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02b7ae8fc..df14a2174 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,23 @@ Code v99.99.999
## Unreleased
+Code v1.141.0
+
+### Added
+
+- A new `--enable-remote-storage` flag can be used to make code-server persist
+ workbench storage on the remote server instead of browser storage. Use this if
+ you want to share storage between multiple devices.
+
+### Fixed
+
+- The Typescript extension was trying to load as a browser extension even though
+ we build the remote server version, causing it to fail to activate.
+
+### Changed
+
+- Update to Code 1.141.0
+
## [4.140.0](https://github.com/coder/code-server/releases/tag/v4.140.0) - 2026-10-02
Code v1.140.0
diff --git a/ci/build/build-vscode.sh b/ci/build/build-vscode.sh
index a7db93a1a..c38b0ae22 100755
--- a/ci/build/build-vscode.sh
+++ b/ci/build/build-vscode.sh
@@ -58,10 +58,17 @@ main() {
exit 1
fi
- # Add the date, our name, links, enable telemetry (this just makes telemetry
- # available; telemetry can still be disabled by flag or setting), and
- # configure trusted extensions (since some, like github.copilot-chat, never
- # ask to be trusted and this is the only way to get auth working).
+ # Modify the product.json:
+ # - Add the date
+ # - Set the code-server name.
+ # - Add our links
+ # - Enable telemetry (this just makes telemetry available; telemetry can still
+ # be disabled by flag or setting)
+ # - Configure trusted extensions (since some, like github.copilot-chat, never
+ # ask to be trusted and this is the only way to get auth working).
+ # - Make Typescript server plugins run in the workspace. We build the remote
+ # server version, so there is no browser distribution, and this key is not
+ # added automatically.
#
# This needs to be done before building as Code will read this file and embed
# it into the client-side code.
@@ -103,6 +110,9 @@ main() {
],
"aiConfig": {
"ariaKey": "code-server"
+ },
+ "extensionPointExtensionKind": {
+ "typescriptServerPlugins": ["workspace"]
}
}
EOF
diff --git a/lib/vscode b/lib/vscode
index 07f806f99..2a59476c9 160000
--- a/lib/vscode
+++ b/lib/vscode
@@ -1 +1 @@
-Subproject commit 07f806f999227108933c2e30515b26eecc1fda74
+Subproject commit 2a59476c9bfcb90b3ddc372c36762471b7dfad1c
diff --git a/patches/base-path.diff b/patches/base-path.diff
index 2c39fe6f5..a300b5904 100644
--- a/patches/base-path.diff
+++ b/patches/base-path.diff
@@ -48,8 +48,8 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench-dev.html
+
-
-@@ -41,7 +41,7 @@
+