100 Commits
Author SHA1 Message Date
Asher 8604302ded Run lint-ts on ci and npm changes 2026-09-08 12:57:11 -08:00
Asher 75d7e662b4 Remove semantic config 2026-09-08 12:52:08 -08:00
Asher 53692fd9fd Add local settings test (#7992) 2026-09-08 12:38:24 -08:00
Asher 8d5f383f30 Fix incorrect data path being used (#7991) 2026-09-08 11:02:14 -08:00
Asher 92f44d9c7b Fix changelog typo 2026-08-24 13:44:38 -08:00
Asher 2d5dbf0b77 Update codeql actions to 4.37.6
One was updated by Dependabot, but not the others.
2026-08-19 14:57:47 -08:00
Asher fa4426393e Run unit tests when npm deps change 2026-08-19 14:31:06 -08:00
Asher 208c81a072 Fix mistakenly encoding cookies to proxy
We use the cookie parser to remove the code-server token but by default
it encodes using encodeURIComponent, which encodes more than is strictly
necessary and can break proxied applications.

Now we pass the cookies through unchanged (other than removing the
code-server token).

Fixes #7927.
2026-08-06 13:06:00 -08:00
Asher f836314954 Use const for unmutated let 2026-08-06 12:35:34 -08:00
Asher 1a370bb606 Update Node types to 24 2026-08-06 11:04:32 -08:00
Asher 4cf9c11e3f Update changelog with 1.131.0 2026-07-30 14:13:53 -08:00
Asher b95360f302 Continue update even if csp patch is missing
This can happen if you run the update multiple times and it was already
deleted from another run but not regenerated yet due to an early
failure like from a conflict.
2026-07-30 11:22:20 -08:00
Asher 9edf867909 Remove dash partially completed update step
Not sure why I assumed this would render.
2026-07-30 11:22:20 -08:00
Asher 3e76a04b1b Fix automatic CSP hash update
The problem was that whenever the hashe needed an update, the current
patch would create a conflict which cannot be easily auto-resolved.

Instead, put the hashes in a separate patch that is deleted and
regenerated each time, avoiding the conflicts.

Also the web worker iframe hash was not being updated.
2026-07-16 12:41:14 -08:00
Asher d103d5057a Fix update script using old Node version
It needs to parse the version *after* the VS Code update, otherwise it
is just pulling whatever the previous version was.

That means we cannot use it in the step title without some refactoring;
opted to just omit it for now.
2026-07-09 22:58:44 -08:00
Asher aed61bf6ab Remove @schemastore/package
Providing our own type is trivial.
2026-07-02 12:29:55 -08:00
Asher 9ccf763b02 Match update PRs titles with commits 2026-06-22 11:31:25 -08:00
Asher 02e28cd254 Name VS Code package "code-oss"
The -dev seems a bit weird since it is not a dev version once it is
built, and also there is a false positive advisory with the code-oss-dev
name.
2026-06-18 10:50:51 -08:00
Asher 25e847dc94 Update Playwright 2026-06-16 11:33:33 -08:00
Asher e1c839fb1d Slightly improve heart tests
- Get rid of the global isActive mock; in particular the way it shadows
  local ones seemed sketchy.
- No need for requireActual from my testing.
- Reword the comment for why we need setImmediate.
- Add the setImmediate to another test that seemed to only pass because
  of an await on the timer call which is not actually a promise but had
  the side effect of yielding.
- Always set fake/real timers in the before/after handlers and never in
  individual tests.
2026-06-16 11:27:53 -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 7617ab2b92 Update AUR commit message to match code-server's 2026-06-16 09:45:30 -08:00
Asher d31d0347cf Remove Dependabot commit prefix
The changelog is manually curated so the prefixes are noise.
2026-06-16 09:45:30 -08:00
Asher 1ccd4f04d2 Update brace-expansion, js-yaml, and ws 2026-06-15 16:42:17 -08:00
Asher 364cf99338 Strip token from cookies before proxying
Since this functionality requires information placed onto the request by
code-server (req.args) and Express (req.cookies), move the standalone
tests into the integration tests as the proxy can no longer run
correctly on its own without that context.

We could strip the header elsewhere or refactor in some way (pass in a
callback function for the stripping or something) but this seems like
the simplest and safest place at the moment to ensure we catch all uses
of the proxy.

In any case, I think it does lend more confidence to know we are testing
the proxy the way it will be used in practice.  The downside is some
additional complexity when setting up tests, but at the moment I do not
think that exchange is overly burdensome.
2026-06-15 16:42:17 -08:00
Asher 77d880d0c3 Drop armhf builds 2026-06-03 12:06:07 -08:00
Asher 559d73a636 Update Code to 1.123.0 (#7837) 2026-06-03 11:33:49 -08:00
Asher 6fd40c04c7 Fix Helm chart version bump script
Instead of relying on semver which is not installed, just parse it with
bash.
2026-06-02 11:29:19 -08:00
Asher 923cb753b8 Fix automatic release major version
It was using the VS Code major version instead of code-server's.
2026-06-01 14:05:20 -08:00
Asher cb2548f989 Make Helm and changelog commit more specific 2026-05-29 10:20:19 -08:00
Asher d98fcd3598 Fix macos release tag 2026-05-28 13:22:08 -08:00
Asher 030bdcf771 Still finish checklist if a step failed
The point is to get as far as we can.
2026-05-28 11:04:14 -08:00
Asher 99bfbd5931 Update e2e example commands
I think the syntax changed when we moved from yarn to npm.
2026-05-21 13:30:44 -08:00
Asher 2114937ec6 Fix release draft trigger
The branches filter is the target, not the PR branch.
2026-05-20 14:21:59 -08:00
Asher cd1586214e Remove "VS" from updates
Technically it is Code (or Code OSS), not VS Code.
2026-05-20 14:09:10 -08:00
Asher 51bc3c0f09 Remove unpublished 4.119.0
For some reason, I never actually published the draft on this one.
Since 4.121.0 will be out shortly, opted to just skip it.
2026-05-20 14:05:31 -08:00
Asher 3c3f87a3d2 Fix adding release notes to draft release 2026-05-20 14:01:37 -08:00
Asher 359b40d422 Ensure dir exists before writing update checklist 2026-05-19 10:13:01 -08:00
Asher 53d981a724 Automatically generate helm/changelog PR 2026-05-08 13:15:25 -08:00
Asher 89ca02c1f7 Add changelog notes to draft release 2026-05-08 13:15:25 -08:00
Asher 2fafe8771d Set name and tag for release 2026-05-08 13:15:25 -08:00
Asher 41c9ed499b Draft release when update branch is merged
Not completely sure this is correct, but will debug with the next
release.
2026-05-08 13:15:25 -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 93ce398e28 Make update cron run twice daily
Every hour seems aggressive, typically I will only check for PRs once a
day anyway.
2026-05-08 09:58:12 -08:00
Asher 62a552d896 Check for updates on a schedule 2026-05-07 15:20:49 -08:00
Asher bd41dca064 Add 4.119.0 to the changelog 2026-05-07 12:10:55 -08:00
Asher 3dbddaaadf Ignore .bak files from sed operations 2026-05-07 12:10:55 -08:00
Asher 58491f317f Add workflow for updating VS Code
For now it is manually triggered.
2026-05-07 10:46:13 -08:00
Asher 9527b7879f Pin GitHub actions 2026-05-07 10:30:37 -08:00
Asher 0059d37db5 Reset cdrci aur repo when publishing
I figure it is probably faster to keep it up to date than to merge
larger and larger changes each time?
2026-05-07 10:23:06 -08:00
Asher 7056332f0b Add update script 2026-05-07 09:21:20 -08:00
Asher 672b4edfbc Add 4.117.0 and 4.118.0 to changelog 2026-05-07 09:21:20 -08:00
Asher 871f1d9048 Skip webkit in e2e tests for now 2026-05-06 12:12:54 -08:00
Asher f6bd6aa1a4 Update Playwright to 1.59.1 2026-05-06 11:50:06 -08:00
Asher 2787a5ca5d Set debug level for e2e tests 2026-05-06 11:38:07 -08:00
Asher ddeb0a3de0 Update brace-expansion to 1.1.14 2026-04-22 14:20:28 -08:00
Asher 22ec1ea65b Run formatter on build yaml
I guess it wants double quotes...
2026-04-22 14:18:44 -08:00
Asher 367dcda592 Update changelog and chart up to 4.116.0 2026-04-17 11:12:33 -08:00
Asher 6ecac88f4d Pin Helm version for linting 2026-04-17 11:12:04 -08:00
Asher be537ce77a Optimize builtin copilot extension (#7757) 2026-04-16 00:07:15 -08:00
Asher cc8f0b7348 Strip sourcemaps (#7756)
This will significantly reduce the size, and for errors we should be
able to map them as necessary.
2026-04-15 22:56:00 -08:00
Asher f04dc2cabd Update chart and changelog up to v4.114.1 2026-04-06 13:06:20 -08:00
Asher 4af6408e39 Preserve permissions with rsync
This is mostly just because if the opts are empty, it seems to error in
macOS for some reason...(rsync_opts[@]: unbound variable).
2026-04-06 12:03:45 -08:00
Asher 1fa5d5084b Omit argon2 prebuilds
Since we build from source, these are dead weight.

It also ensures we did in fact build from source.
2026-04-06 11:56:28 -08:00
Asher d74b002969 Build native modules from source
Another thing I managed to miss when refactoring CI.
2026-04-06 11:56:23 -08:00
Asher 82fe3a72a2 Copy correct Node into release
Still had the old code that copied the system Node, which in the case of
cross-compilation will be the wrong one.  Instead copy the one VS Code
downloads, which should be for the correct platform.
2026-04-03 11:32:54 -08:00
Asher b27ceeb106 Prune dev dependencies when building release 2026-03-31 09:07:39 -08:00
Asher be062d06c1 Use tag env var in npm publish 2026-03-30 14:36:22 -08:00
Asher f733ccaed1 Skip binary downloads during build 2026-03-30 14:36:21 -08:00
Asher 6f69f28379 Fix top level release package dir 2026-03-30 14:36:21 -08:00
Asher 6b36d4e421 Fix cross-compiled releases
Instead of doing our own thing, make use of VS Code's setup script.
2026-03-30 14:36:21 -08:00
Asher 9dcb1d7da0 Set version in release package.json
Before this was handled by an extra CI step, now we can just do it in
the release script.

Pulling it from the product.json since we already set it there, rather
than ask for it again via env var.
2026-03-27 17:53:59 -08:00
Asher 840a9430cd Fix quilt and git install on linux job 2026-03-27 17:53:56 -08:00
Asher 9143a299a4 Update changelog with 4.110.0 through 4.112.0 2026-03-27 17:11:18 -08:00
Asher 41b0e45f91 Set npm token for publishing 2026-03-27 17:11:03 -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
Asher a5c1b6a196 Use inputs instead of github.event.inputs
Just to be consistent with the other workflow.  They are the same except
inputs treats booleans as booleans instead of strings, which seems like
it might be better anyway.
2026-03-26 12:04:11 -08:00
Asher 62afaf261b Update npm dependencies 2026-03-03 16:18:30 -09:00
Asher 98a2a0064b Update Helm chart and changelog to 4.109.5 2026-03-03 08:24:56 -09:00
Asher 3368ef91ef Update Helm chart with 4.108.0 2026-01-12 17:24:19 -09:00
Asher 65d6b9a4c4 Update changelog for 4.107.0, 4.107.1, and 4.108.0 2026-01-12 10:30:52 -09:00
Asher e352745c4c Clarify VS Code web vs vscode.dev in bug template 2026-01-12 10:27:22 -09:00
Asher ac7322ce56 Update changelog 2025-12-11 16:33:07 -09:00
Asher 472bf8a5fa Remove homebrew step
It has been broken for a long time (No available formula with the name
"code-server") but it looks like they have their own bot publishing
updates anyway.
2025-12-02 13:38:27 -09:00
Asher f128a7ac11 Update actionlint to 1.7.9 2025-12-01 12:55:13 -09:00
Asher 80996d2e08 Add VS Code web to the bug template 2025-12-01 12:49:28 -09:00
Asher 85042e2910 Note settings change from VS Code web and Codespaces 2025-11-25 14:39:16 -09:00
Asher 904942a194 Increase build timeout 2025-11-19 14:02:53 -09:00
Asher 93c1f4f10c Update macOS runner
Seems macos-13 is being deprecated.
2025-11-18 13:25:39 -09:00
Asher 9fd98d58e7 Release v4.104.1 and v4.104.2 2025-10-01 14:15:07 -08:00
Asher d1066af558 Release v4.104.0 2025-09-15 14:36:47 -08:00
Asher b59a4f7366 Release v4.103.1 and v4.103.2 2025-08-28 11:55:58 -08:00
Asher 2bbb6e8cca Release v4.103.0 2025-08-12 14:31:17 -08:00
Asher 3f23840756 Remove import from express-serve-static-core
Mostly because express-serve-static-core is an implicit dependency.  We
could make it explicit, but the type we imported from it is just an
alias for qs.ParsedQs anyway.
2025-08-04 12:26:46 -08:00
Asher e54467fb85 Run npm audit fix 2025-08-04 12:26:46 -08:00
Asher 8f738d29f2 Remove unused supertest dependency 2025-08-04 12:26:46 -08:00
Asher 5c0ff5013f Remove direct safe-buffer dependency
We do not use it directly.
2025-08-04 12:26:46 -08:00
Asher b5a2ce2522 Use error handler in session server (#7455) 2025-08-04 11:05:48 -08:00
Asher b1ad6ffcb9 Release v4.102.2 2025-07-24 14:08:12 -08:00
Asher 84728f0b21 Release v4.102.1 2025-07-17 13:25:16 -08:00