From 494a3e0c2bb8298b6cc650c76e63d38ce8136e36 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 1 Nov 2024 20:32:25 +0000 Subject: [PATCH] Update Code to 1.95.1 (#7059) * Update Code to 1.95.1 * Update Node to 20.18.0 * Update build.yaml to use Ubuntu 22.04 This is to resolve a gcc error. Might have to address the release step later as well. * Fix --stdin-to-clipboard With the switch to esm, the fs require is failing. fs is already imported, so we can just use it anyway. * Fix mangled exports * Update CSP hashes --- .github/workflows/build.yaml | 16 ++-- .node-version | 2 +- CHANGELOG.md | 6 ++ flake.lock | 17 ++-- flake.nix | 5 +- lib/vscode | 2 +- patches/base-path.diff | 126 +++++++---------------------- patches/clipboard.diff | 9 +-- patches/display-language.diff | 10 +-- patches/external-file-actions.diff | 2 +- patches/getting-started.diff | 6 +- patches/integration.diff | 79 +++++++++++++----- patches/local-storage.diff | 2 +- patches/logout.diff | 2 +- patches/marketplace.diff | 4 +- patches/proxy-uri.diff | 4 +- patches/service-worker.diff | 2 +- patches/sourcemaps.diff | 8 +- patches/store-socket.diff | 6 +- patches/telemetry.diff | 2 +- patches/update-check.diff | 2 +- patches/webview.diff | 15 +--- 22 files changed, 147 insertions(+), 180 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3d6aaf839..67969af29 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,7 +24,7 @@ concurrency: jobs: prettier: name: Format with Prettier - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - name: Checkout repo @@ -37,7 +37,7 @@ jobs: doctoc: name: Doctoc markdown files - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - name: Checkout repo @@ -68,7 +68,7 @@ jobs: lint-helm: name: Lint Helm chart - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - name: Checkout repo @@ -97,7 +97,7 @@ jobs: lint-ts: name: Lint TypeScript files - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - name: Checkout repo @@ -146,7 +146,7 @@ jobs: test-unit: name: Run unit tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - name: Checkout repo @@ -187,7 +187,7 @@ jobs: build: name: Build code-server - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 60 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -269,7 +269,7 @@ jobs: test-e2e: name: Run e2e tests needs: build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 25 steps: - name: Checkout repo @@ -318,7 +318,7 @@ jobs: test-e2e-proxy: name: Run e2e tests behind proxy needs: build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 timeout-minutes: 25 steps: - name: Checkout repo diff --git a/.node-version b/.node-version index 8ce703082..2a393af59 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.16.0 +20.18.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 02d3b4e9f..9daa2c957 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,12 @@ Code v99.99.999 ## Unreleased +Code v1.95.0 + +### Changed + +- Update to Code 1.95.0. + ## [4.93.1](https://github.com/coder/code-server/releases/tag/v4.93.1) - 2024-09-23 Code v1.93.1 diff --git a/flake.lock b/flake.lock index 5c53c61c0..a877450ff 100644 --- a/flake.lock +++ b/flake.lock @@ -20,15 +20,18 @@ }, "nixpkgs": { "locked": { - "lastModified": 1724224976, - "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", - "path": "/nix/store/j8pbrsb3nybdap3hhg9kw0ffqd4rlbx6-source", - "rev": "c374d94f1536013ca8e92341b540eba4c22f9c62", - "type": "path" + "lastModified": 1730359060, + "narHash": "sha256-Hkk0mf4pgvX9Ut0YA397nsFqMLhzFVBdFHc4PhBrxYE=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "e19cfce6f3f08d07653157d8826f5c920c770d7b", + "type": "github" }, "original": { - "id": "nixpkgs", - "type": "indirect" + "owner": "nixos", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" } }, "root": { diff --git a/flake.nix b/flake.nix index 123cc4717..2fee8f28b 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,10 @@ { description = "code-server"; - inputs.flake-utils.url = "github:numtide/flake-utils"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small"; + flake-utils.url = "github:numtide/flake-utils"; + }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem diff --git a/lib/vscode b/lib/vscode index 384ff7382..65edc4939 160000 --- a/lib/vscode +++ b/lib/vscode @@ -1 +1 @@ -Subproject commit 384ff7382de624fb94dbaf6da11977bba1ecd427 +Subproject commit 65edc4939843c90c34d61f4ce11704f09d3e5cb6 diff --git a/patches/base-path.diff b/patches/base-path.diff index dbca6a564..ba6e054a8 100644 --- a/patches/base-path.diff +++ b/patches/base-path.diff @@ -10,7 +10,7 @@ Index: code-server/lib/vscode/src/vs/base/common/network.ts =================================================================== --- code-server.orig/lib/vscode/src/vs/base/common/network.ts +++ code-server/lib/vscode/src/vs/base/common/network.ts -@@ -215,7 +215,9 @@ class RemoteAuthoritiesImpl { +@@ -220,7 +220,9 @@ class RemoteAuthoritiesImpl { return URI.from({ scheme: platform.isWeb ? this._preferredWebSchema : Schemas.vscodeRemoteResource, authority: `${host}:${port}`, @@ -46,18 +46,18 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench-dev.html + + + - + - + @@ -39,7 +39,7 @@ - - + + + + - -