Skip to content
Merged
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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
Expand All @@ -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;
Expand Down
Loading