From 9dfcaa2269ce61488339e2d3fc5ab24ee063aab9 Mon Sep 17 00:00:00 2001 From: Matheus Martins Date: Mon, 20 Jul 2026 21:21:37 +0000 Subject: [PATCH] Bump default language server to v0.3.0, release extension 0.2.0 Pin the default downloaded server to the v0.3.0 release (from v0.2.4) with its verified SHA-256, and update the 0.2.x -> 0.3.x references in the description, README, and build-server default branch. Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 7 +++++++ README.md | 2 +- package.json | 4 ++-- scripts/build-server.mjs | 4 ++-- src/server.ts | 6 +++--- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fcb4da..39a229b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to the **xphp** extension are documented here. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.0] + +### Changed +- Bump the default pinned language server to **v0.3.0** (from `v0.2.4`), with its + matching SHA-256. The extension now downloads the v0.3.0 release by default. + ## [0.1.0] First public release. Language support for `.xphp` files powered by the xphp @@ -34,4 +40,5 @@ language server. `xphp.server.arguments`, and `xphp.trace.server`. - Automatic server restart when any server-affecting setting changes. +[0.2.0]: https://github.com/xphp-lang/vscode-extension/releases/tag/v0.2.0 [0.1.0]: https://github.com/xphp-lang/vscode-extension/releases/tag/v0.1.0 diff --git a/README.md b/README.md index c9cc7e0..454abdf 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ navigation, completion, hover, and code lenses. ## Requirements -- **PHP 8.4+** on your `PATH` (or set `xphp.php.path`). The 0.2.x language server +- **PHP 8.4+** on your `PATH` (or set `xphp.php.path`). The 0.3.x language server requires PHP 8.4. - For local development of the server: `git`, `composer`, and `make`. diff --git a/package.json b/package.json index 7706ca7..9ad9f41 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "xphp", "displayName": "xphp", - "description": "Language support for xphp — a superset of PHP — powered by the xphp language server (0.2.x) over LSP.", - "version": "0.1.0", + "description": "Language support for xphp — a superset of PHP — powered by the xphp language server (0.3.x) over LSP.", + "version": "0.2.0", "publisher": "xphp", "license": "MIT", "icon": "icons/xphp-icon.png", diff --git a/scripts/build-server.mjs b/scripts/build-server.mjs index bf794a1..e70e786 100644 --- a/scripts/build-server.mjs +++ b/scripts/build-server.mjs @@ -6,7 +6,7 @@ // // Override defaults with env vars: // XPHP_LSP_REPO git URL (default: github.com/xphp-lang/language-server) -// XPHP_LSP_BRANCH branch/ref (default: 0.2.x) +// XPHP_LSP_BRANCH branch/ref (default: 0.3.x) import { execFileSync } from "node:child_process"; import * as fs from "node:fs"; @@ -16,7 +16,7 @@ import { fileURLToPath } from "node:url"; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); const REPO = process.env.XPHP_LSP_REPO || "https://github.com/xphp-lang/language-server.git"; -const BRANCH = process.env.XPHP_LSP_BRANCH || "0.2.x"; +const BRANCH = process.env.XPHP_LSP_BRANCH || "0.3.x"; const SERVER_DIR = path.resolve(process.env.XPHP_LSP_DIR); const BUILT_PHAR = path.join(SERVER_DIR, "var", "xphp-lsp.phar"); diff --git a/src/server.ts b/src/server.ts index 6c97054..2ebd9bf 100644 --- a/src/server.ts +++ b/src/server.ts @@ -8,7 +8,7 @@ import { XphpConfig } from "./config"; const execFileAsync = promisify(execFile); -/** Minimum PHP version the xphp language server (0.2.x) requires. */ +/** Minimum PHP version the xphp language server (0.3.x) requires. */ const MIN_PHP = [8, 4] as const; /** File name the build script / download flow writes the server to. */ @@ -20,7 +20,7 @@ const PHAR_NAME = "xphp-lsp.phar"; * a new server version is a one-line change here (and re-downloads, since the * cached PHAR is keyed by URL). */ -const SERVER_VERSION = "v0.2.4"; +const SERVER_VERSION = "v0.3.0"; /** * Release PHAR the extension downloads when the user hasn't set @@ -36,7 +36,7 @@ const DEFAULT_DOWNLOAD_URL = * is verified against `xphp.server.downloadSha256` if (and only if) that's set. */ const DEFAULT_DOWNLOAD_SHA256 = - "ced7441e6a205b121a7e4da3e0fda1745ed5d92df3810ffbeae9c9104a786cb8"; + "b3cfc2ac614b20f797773bae026b7eb4dec182a808622195cdfffc88fb2a879f"; export interface ResolvedServer { phpPath: string;