Skip to content
Open
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
48 changes: 24 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: npx prettier --check .
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- run: pnpm run prettier --check .

doctoc:
name: Doctoc markdown files
Expand All @@ -78,12 +78,12 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: npm run doctoc
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- run: pnpm run doctoc

lint-helm:
name: Lint Helm chart
Expand Down Expand Up @@ -112,12 +112,12 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: npm run lint:ts
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- run: pnpm run lint:ts

lint-actions:
name: Lint GitHub Actions
Expand All @@ -143,12 +143,12 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: npm run test:unit
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- run: pnpm run test:unit
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
if: success()
with:
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
Expand All @@ -205,22 +205,22 @@ jobs:
if: steps.cache-vscode.outputs.cache-hit != 'true'
run: |
cd lib/vscode/build
npm ci
npmp install --frozen-lockfile
cd ..
source ./build/azure-pipelines/linux/setup-env.sh
# Run preinstall script before root dependencies are installed
# so that v8 headers are patched correctly for native modules.
node build/npm/preinstall.ts
npm ci
npmp install --frozen-lockfile
cd ../..
npm run build:vscode
# Build the code-server wrapper.
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: npm run build
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- run: pnpm run build

# Push up an artifact containing the linux-x64 release.
- run: KEEP_MODULES=1 npm run release
- run: KEEP_MODULES=1 pnpm run release
- run: tar -czf package.tar.gz release
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
Expand All @@ -240,11 +240,11 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- name: Install Playwright OS dependencies
run: |
./test/node_modules/.bin/playwright install-deps
Expand All @@ -255,7 +255,7 @@ jobs:
name: linux-x64-package
- run: tar -xzf package.tar.gz

- run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e
- run: CODE_SERVER_TEST_ENTRY=./release pnpm run test:e2e
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
if: always()
with:
Expand Down Expand Up @@ -290,11 +290,11 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: SKIP_SUBMODULE_DEPS=1 npm ci
- run: SKIP_SUBMODULE_DEPS=1 npmp install --frozen-lockfile
- name: Install Playwright OS dependencies
run: |
./test/node_modules/.bin/playwright install-deps
Expand All @@ -306,7 +306,7 @@ jobs:
- run: tar -xzf package.tar.gz

- run: ~/.cache/caddy/caddy start --config ./ci/Caddyfile
- run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e:proxy
- run: CODE_SERVER_TEST_ENTRY=./release pnpm run test:e2e:proxy
- run: ~/.cache/caddy/caddy stop --config ./ci/Caddyfile
if: always()
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- name: Build
run: |
cd lib/vscode/build
npm ci
npmp install --frozen-lockfile
cd ..
source ./build/azure-pipelines/linux/setup-env.sh
# Run preinstall script before root dependencies are installed
# so that v8 headers are patched correctly for native modules.
node build/npm/preinstall.ts
cd ../..
npm ci
npmp install --frozen-lockfile
npm run build
npm run build:vscode
Expand Down Expand Up @@ -180,12 +180,12 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
- run: npm ci
- run: npmp install --frozen-lockfile
- run: npm run build
- run: npm run build:vscode
- run: KEEP_MODULES=1 npm run release
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
with:
node-version-file: .node-version
cache: npm
cache: pnpm
cache-dependency-path: |
package-lock.json
test/package-lock.json
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
SHIM
chmod +x "$RUNNER_TEMP/shim/rsync"
- run: npm ci
- run: npmp install --frozen-lockfile
- run: npm run build
- run: npm run build:vscode
- run: KEEP_MODULES=1 npm run release
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.22.1

16 changes: 13 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ Code v99.99.999

## Unreleased

Code v1.145.3
Code v1.146.0

### Changed

- Update to Code 1.146.0
- For anyone building code-server, note that we switched to pnpm to match
upstream VS Code. npm is no longer supported for building from source, though
it can still be used to install code-server from the npm repositories (pnpm
and yarn can also be used).

### Added

Expand All @@ -31,9 +39,11 @@ Code v1.145.3
Before, code-server's own script failed with `Unknown option --wait`, so this
only worked when the integrated terminal found the `remote-cli` script first.

### Changed
### Fixed

- Update to Code 1.145.3
- Requests against the built-in proxy will now be rewritten correctly against
the base URL on Windows. Previously it was trying to split the request on
backslashes instead of forward slashes.

## [4.145.2](https://github.com/coder/code-server/releases/tag/v4.145.2) - 2026-11-07

Expand Down
14 changes: 10 additions & 4 deletions ci/build/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ EOF
rsync "${rsync_opts[@]}" node_modules/ "$RELEASE_PATH/node_modules"
# Remove dev dependencies.
pushd "$RELEASE_PATH"
npm prune --production
pnpm prune --production
popd
fi

Expand Down Expand Up @@ -171,19 +171,25 @@ create_shrinkwraps() {
# We first generate the shrinkwrap file for code-server itself - which is the
# current directory.
cp package-lock.json package-lock.json.temp
npm shrinkwrap
# TODO@npm: how??
# npm shrinkwrap
touch npm-shrinkwrap.json
mv package-lock.json.temp package-lock.json

# Then the shrinkwrap files for the bundled VS Code.
pushd "$VSCODE_SRC_PATH/remote/"
cp package-lock.json package-lock.json.temp
npm shrinkwrap
# npm shrinkwrap
# TODO@npm: how??
touch npm-shrinkwrap.json
mv package-lock.json.temp package-lock.json
popd

pushd "$VSCODE_SRC_PATH/extensions/"
cp package-lock.json package-lock.json.temp
npm shrinkwrap
# npm shrinkwrap
# TODO@npm: how??
touch npm-shrinkwrap.json
mv package-lock.json.temp package-lock.json
popd
}
Expand Down
8 changes: 4 additions & 4 deletions ci/build/build-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ main() {

if [[ ! ${VERSION-} ]]; then
echo "VERSION not set. Please set before running this script:"
echo "VERSION='0.0.0' npm run build:vscode"
echo "VERSION='0.0.0' pnpm run build:vscode"
exit 1
fi

Expand Down Expand Up @@ -119,10 +119,10 @@ EOF
) > product.json


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

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

# Reset so if you develop after building you will not be stuck with the wrong
# commit (the dev client will use `oss-dev` but the dev server will still use
Expand Down
13 changes: 9 additions & 4 deletions ci/build/npm-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,16 @@ main() {
fi
}

install_with_yarn_or_npm() {
install_with_package_manager() {
echo "User agent: ${npm_config_user_agent-none}"
# For development we enforce npm, but for installing the package as an
# For development we enforce pnpm, but for installing the package as an
# end-user we want to keep using whatever package manager is in use.
case "${npm_config_user_agent-}" in
pnpm*)
if ! pnpm install --prod --frozen-lockfile; then
return 1
fi
;;
npm*)
if ! npm install --omit=dev; then
return 1
Expand All @@ -116,15 +121,15 @@ install_with_yarn_or_npm() {
vscode_install() {
echo 'Installing Code dependencies...'
cd lib/vscode
if ! install_with_yarn_or_npm; then
if ! install_with_package_manager; then
return 1
fi

symlink_bin_script remote-cli code code-server
symlink_bin_script helpers browser browser .sh

cd extensions
if ! install_with_yarn_or_npm; then
if ! install_with_package_manager; then
return 1
fi

Expand Down
2 changes: 1 addition & 1 deletion ci/build/update-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function update_node() {
local node_version
node_version=$(cat .node-version)
local target_node_version
target_node_version=$(grep target lib/vscode/remote/.npmrc | awk -F= '{print $2}' | tr -d '"')
target_node_version=$(jq --raw-output .nativeBuild.target lib/vscode/remote/package.json)
if [[ $node_version == "$target_node_version" ]] ; then
echo "Already set to $target_node_version"
else
Expand Down
2 changes: 1 addition & 1 deletion ci/dev/doctoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ main() {
echo "Files need generation or are formatted incorrectly:"
git -c color.ui=always status | grep --color=no '\[31m'
echo "Please run the following locally:"
echo " npm run doctoc"
echo " pnpm run doctoc"
exit 1
fi
}
Expand Down
4 changes: 2 additions & 2 deletions ci/dev/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install-deps() {
else
args+=(install)
fi
# If there is no package.json then npm will look upward and end up installing
# If there is no package.json then pnpm will look upward and end up installing
# from the root resulting in an infinite loop (this can happen if you have not
# checked out the submodule yet for example).
if [[ ! -f "$1/package.json" ]]; then
Expand All @@ -18,7 +18,7 @@ install-deps() {
fi
pushd "$1"
echo "Installing dependencies for $PWD"
npm "${args[@]}"
pnpm "${args[@]}"
popd
}

Expand Down
4 changes: 2 additions & 2 deletions ci/dev/preinstall.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if (process.env.npm_execpath.includes("yarn")) {
throw new Error("`yarn` is no longer supported; please use `npm install` instead")
if (!/^pnpm\/(\d+)\.(\d+)\.(\d+)/.exec(process.env.npm_config_user_agent)) {
throw new Error("`yarn` and `npm` are no longer supported; please use `pnpm install` instead")
}
Loading
Loading