343 Commits
Author SHA1 Message Date
cdrci 9cc1033c19 Update Code to 1.146.0 (#8121)
* Stop generating shrinkwraps

npm 12 removes support for shrinkwraps.  Additionally, VS Code has
switched to pnpm and this will make generating the shrinkwraps less
straightforward.

Exact pins in the package.json would not be a sufficient replacement
since that does not cover transitive dependencies.

The recommendation for end user packages installed globally with npm
seems to be to be to bundle dependencies.

One idea would be to build for every platform and bundle them all, but
the whole reason we have the npm package is to support platforms for
which we are not building.  If we build them, we could just add a
regular release for that platform on GitHub.

So instead for each native module we would need to add rebuild commands
in the postinstall.  And ideally remove the current platform builds to
at least try keeping the tarball size down.

I am not sure it is worth the effort for what it feels like fighting
with npm, so this change does not attempt that.

* Remove devDependencies from extensions package.json

Not strictly necessary since we only install production dependencies in
the postinstall, but might as well save some bytes.

* Update Code to 1.146.0

* Support pnpm for post-install

* Get Node version from package.json

lib/vscode/remote/.npmrc no longer exists

* Switch to pnpm

VS Code recently switched to pnpm so various scripts needed to be
updated, and we might as well follow suite with code-server's own
dependencies.

In general this change just swaps out "npm" invocations for "pnpm" plus
any necessary flag changes to match but to call out some less obvious
changes:

1. The extensions directory no longer has a post-install script, so
   there is no need to copy one anymore.
2. When merging the remote package.json, only copy the dependencies
   since that is all we need, to avoid copying in new properties like
   packageManager.
3. Remove unused publish:npm.  It points to a nonexistent file anyway.
4. Remove publish:docker and just call the script directly, to avoid an
   npm/pnpm dependency in a job that really has no need for it.

* Update nfpm maintainer
2026-11-20 01:38:16 -09:00
Kyle CarberryandClaude Opus 5.5 e7ff0c41be ci: releases need a second approver and come only from attested builds (#8143)
* ci: releases need a second approver and come only from attested builds

The Release workflow builds the packages from a commit on main (the merge commit of an update/
PR, or a commit given to a dispatch on main) and attests each file's provenance. A member of
code-server-release-team other than the person who started the run then approves the
release-approval environment. Only that job, as the coder-release-publisher App (key in Cloud
KMS), creates the tag and publishes the release with the attested files, in one step. Releases
are immutable, so the files can't change after that, and there is no draft for anyone to edit.

publish.yaml publishes nothing until it has checked that the release came from
coder-release-publisher, is immutable, and that every file was attested by release.yaml from main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: upload release-packages directly instead of copying it

package.tar.gz is now written into release-packages next to the platform packages, so every build
job attests and uploads one flat directory without a copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: remove a doubled blank line in release.yaml

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:54:42 +00:00
Dean Sheather 452dd0982a ci: remove Codecov 2026-11-18 10:09:35 -09:00
Itzhak Lobak 05286010ae Remove Cloud providers section
The linked repository has been archived for a long time.
2026-11-10 15:49:12 -09:00
Steven f871c1663b Document that Cloudflare Rocket Loader must be disabled (#8026) 2026-09-30 14:55:09 -08:00
Zain Qureshi 2bb012c17a Sync Helm docs table and badges with the chart (#8024) 2026-09-29 14:53:43 -08:00
Robert Gingras 4cb856c475 Add --socket-fd CLI option (#7940) 2026-08-20 13:24:49 -08:00
Alexander Freiherr von Buddenbrock 596dbf3416 Update files to reflect the new node.js v24 (#7949)
With the update to node.js v24 in vscode and package.json some files have not been updated and still referenced version 22.x.
2026-08-17 09:03:55 -08:00
赵鑫亿 51f90a376b docs(helm): remove duplicated 'the' in persistence example (#7936) 2026-08-10 10:22:48 -08:00
Vishal Doshi 924bfac9fd Document opening a file at a line via the payload query parameter (#7909) 2026-07-30 14:14:17 -08:00
Asher 72086edbdb Remove Windows npm installation recommendation
We need to properly support Windows before we can recommend any method
of installation, including npm.
2026-06-16 09:45:30 -08:00
Asher 1605d68709 Update contribution steps for updating
You can now more easily run the update script to finish out an update
and the documentation is updated to match.
2026-05-08 11:20:56 -08:00
Asher b5611efe1a Use VS Code packaging for releases (#7721)
* Allow setting the VS Code build target

For the NPM package (and tests, at least for now), we will still use
linux-x64, but this is going to allow using the platform build targets
for our standalone releases so we can avoid having to copy all the
packaging steps (like cleaning up modules).

This does mean that the NPM package when installed will be missing those
cleanup steps.  Possibly we can try to break out the packaging step into
a something that can be ran standalone (which will also require
installing dev dependencies like gulp) but not sure how much work this
would be.

* Preserve dependencies for e2e tests

To avoid having to install them again.

Also moved an env block to the root of the  job.

* Refactor releases to use VS Code packaging

Instead of building the linux-x64 package, stripping the modules, then
installing them again, we build the correct target and use the modules
as they are.

This means we do not have to copy all the post-processing steps like the
ones that delete unnecessary modules.

For the NPM package we still publish the linux-x64 package (without
modules of course).  This means npm installations do not get that same
post-processing.

Another advantage of this is that we can run the release immediately
without having to wait for the build step, or on a commit that no longer
has a build artifact, since they all build individually now.  We could
try sharing the core-ci build step, but leaving that alone for now.

I also converted the macOS jobs into a matrix.

Deleted the CI readme because it was out of date and seemed to just
repeat what should be described in the scripts anyway.

Removed a section about Homebrew since we do not maintain that anymore.

It looks like there is no need to symlink node_modules.asar anymore.
2026-03-27 17:08:35 -08:00
Tianyi Cui ada3489acf feat: expose --reconnection-grace-time CLI flag (#7678)
* feat: expose --reconnection-grace-time CLI flag

Pass through VS Code Server's --reconnection-grace-time argument,
allowing users to configure how long the server waits for a
disconnected client to reconnect before cleaning up the session.

This is useful for users whose client machines sleep overnight, causing
the default 3-hour grace period to expire and forcing a "Reload Window"
on wake. The flag can also be set via CODE_SERVER_RECONNECTION_GRACE_TIME
env var or in config.yaml.
2026-03-25 11:47:58 -08:00
Andy Hamon 65299492b6 s/htpps/https (#7662) 2026-02-10 07:33:01 -09:00
Asher 85042e2910 Note settings change from VS Code web and Codespaces 2025-11-25 14:39:16 -09:00
SuitDeer 282f74d9f5 Update Node.js version in Android docs from 18 to 22 (#7542) 2025-10-28 16:14:17 -08:00
Andrew Baldwin db8a41bce1 Add idle timeout (#7539) 2025-10-28 16:10:56 -08:00
Olexandr88 54b33a75e0 Add Discord link to readme (#7465) 2025-08-25 10:32:11 -08:00
dependabot[bot] b27d982c67 chore: bump prettier from 3.4.2 to 3.6.2 (#7407) 2025-08-04 12:46:32 -08:00
Sheldon Tsen fe7db4900a Update values.yaml to better support dind (#7431) 2025-07-22 09:17:44 -08:00
Asher f26309a23c Release v4.102.0 2025-07-16 18:56:42 -08:00
Alex Strick van Linschoten 92fca0dcc3 Add language customization flag (#7374)
This allows you to customize any string (that has a translation) or add your own translations.
2025-07-15 12:38:27 -08:00
Olivier Benz 405eb0f511 Update Code to 1.101.0 (#7376) 2025-06-16 13:03:47 -08:00
Asher d0e20d514d Update devcontainer feature link
I think we meant to link to the feature readme rather than the general
repo readme.
2025-05-08 14:24:05 -08:00
Bartek Gatz 7af90ea623 Mention code-server devcontainer feature (#7342) 2025-05-06 14:49:38 -08:00
Asher dded82bb47 Release v4.99.3 2025-04-28 14:28:51 -08:00
partev ec0899a81b Remove extra closing parentheses from docs (#7309) 2025-04-14 11:27:44 -08:00
Jan Larwig a6fad66e5e doc: update upstream documentation urls (#7165) 2025-02-11 11:24:31 -09:00
Jérôme Petazzoni b18a647d0a Update Alpine instructions (#7156)
While trying to set up code-server on Alpine, I ran into build errors. To solve them, I had to add Kerberos development libs. Also, it looks like npm config doesn't work in recent version of Node and doesn't seem to be necessary. These instructions were tested in the Docker `node:20-alpine` image.
2025-01-13 11:18:53 -09:00
Olivier Benz fc6064dcd3 Update Code to 1.94.2 (#7026)
* Update Code to 1.94.2

* Convert from yarn to npm

This is to match VS Code.  We were already partially using npm for the
releases so this is some nice alignment.

* Update caniuse-lite

This was complaining on every unit test.

* Update eslint

I was having a bunch of dependency conflicts and eslint seemed to be the
culprit so I just removed it and set it up again, since it seems things
have changed quite a bit.

* Update test dependencies

I was getting oom when running the unit tests...updating seems to work.

* Remove package.json `scripts` property in release

The new pre-install script was being included, which is dev-only.

This was always the intent; did not realize jq's merge was recursive.

* Remove jest and devDependencies in release as well

* Update test extension dependencies

This appears to be conflicting with the root dependencies.

* Fix playwright exec

npm does not let you run binaries like yarn does, as far as I know.

* Fix import of server-main.js

* Fix several tests by waiting for selectors
2024-10-17 20:32:21 -08:00
Rafael Ferreira 4a703893b0 Add --abs-proxy-base-path for when code-server is not at the root (#6958) 2024-08-26 20:19:55 +00:00
Asher 6467c60166 Remove section about VS Code Remote
It has nothing to do with code-server and will not connect to or use
code-server in any way.

Closes #5613.
2024-07-12 17:02:40 -08:00
Asher 6a14070664 Add faq entry about web views
Closes #5671.
2024-07-11 11:52:23 -08:00
Asher a9eb923790 Remove unused audit-ci dependency
There is a `yarn ci` script which was using audit-ci but this does not
appear to be called anywhere.

The security worflow uses `yarn audit` and `npm audit` which seem fine
enough anyway.
2024-07-10 13:23:24 -08:00
Asher 6514ba4bf3 Update contributing docs 2024-07-03 13:33:02 -08:00
Olivier Benz 6d9530aa6b Update Code to 1.90.0 (#6824)
Additionally:

- Update Node to 20.11.1
- Update documentation
- Disable extension signature verification

This works around an issue where the Open VSX is not returning the
expected zip.  Verification is skipped later anyway because
@vscode/vsce-sign is missing in the OSS version.
2024-06-06 15:02:13 -08:00
Asher 323a1f3234 Only require unsafe-perm if you are root
Remove it from the docs, as the error message should be sufficient and
it seems weird to recommend unsafe-perm by default.
2024-04-16 10:48:46 -08:00
Muhammad Atif AliandAsher 963fcfc3a5 docs: add coder module as an installation method (#6692)
Co-authored-by: Asher <ash@coder.com>
2024-02-28 22:06:49 +00:00
ckesc 853ab407de Update FAQ: clarify about hashed pass and compose file (#6671) 2024-02-12 22:11:45 +00:00
Merith ff0fcf6cde Fix non-functional Docker Hub link (#6595)
registry.hub.docker.com leads to an blank white page
removing "registry' from the URL fixes it and takes the user to the correct page
2024-01-05 11:22:33 -09:00
Ammar Bandukwala 6f078a48a6 Improve README callout to coder/coder (#6579) 2023-12-12 14:23:54 -09:00
Quentin Quaadgras 958c5203ec Update Termux docs on how to enable keyboard shortcuts and tab key (#6539) 2023-11-20 08:16:17 -09:00
Asher 27e7b931e7 Remove mention of legacy extension API
We would like to shut this down.
2023-10-04 15:44:54 -08:00
liuxhit db9f678477 Update default nginx config in guide.md (#6471)
update nginx config to avoid wss error when expose code-server using a custom domain and a custom port via nginx.

see also: 
[issue of code-server](https://github.com/coder/code-server/issues/4443)
[different between `$host` and `$http_host`](https://stackoverflow.com/a/76875724)
2023-10-04 10:41:35 -08:00
Dov Benyomin Sohacheski 020f280458 Add .local mount to example Docker command (#6419) 2023-09-22 17:07:07 -08:00
Asher 47ee7ae670 Bump minimum glibc to 2.28 (#6439)
At least, for the standalone and for anyone running on default Node 18.

If support for 2.17 is needed then one would need to build Node 18 with 2.17 and then build code-server with that version (specifically, the native npm modules).
2023-09-21 13:42:17 -08:00
Asher 70d0c603cc Update to VS Code 1.82.2 (#6436)
* Update VS Code to 1.82.2

* Add new libkrb5 dependency

* Update patches

The only changes were to context except:

- The URL callback provider uses a new _callbackRoute argument and moved
  locations.
- The telemetry provider gets passed the request service as the first
  argument now.
- CSP hash changed, as usual.

* Update Node to v18

* Revert back to es2020

es2022 is breaking Safari.
2023-09-20 15:33:28 -08:00
Efren 56d3548fa2 Add braces to Caddyfile example (#6382) 2023-08-10 00:44:23 +00:00
jothi prasath 2d335bd1ea Update screenshots (#6372) 2023-08-07 19:02:54 +00:00