From ea4351afbffd4b6daac5d37f2b79e22a671f9f9f Mon Sep 17 00:00:00 2001 From: Daron Date: Sat, 28 Mar 2026 16:15:16 +0100 Subject: [PATCH] Update setup instructions for Zed extension Added prerequisite for Rust toolchain installation before using the Zed extension. --- docs/SETUP.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/SETUP.md b/docs/SETUP.md index 3e53d3d7..1d93a183 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -30,10 +30,11 @@ PHPantom communicates over stdin/stdout using the standard [Language Server Prot A Zed extension is included in the `zed-extension/` directory: -1. Open Zed -2. Open the Extensions panel -3. Click **Install Dev Extension** -4. Select the `zed-extension/` directory +1. Ensure you have `rustc` available in your `$PATH`. This is part of the Rust [toolchain](https://rust-lang.org/tools/install/) +2. Open Zed +3. Open the Extensions panel +4. Click **Install Dev Extension** +5. Select the `zed-extension/` directory The extension automatically downloads the correct pre-built binary from GitHub releases for your platform. If you'd prefer to use a locally built binary, ensure `phpantom_lsp` is on your `PATH` and the extension will use it instead. @@ -196,4 +197,4 @@ PHPantom resolves cross-file classes through Composer's autoloading rules (PSR-4 2. **Composer's classmap is stale.** Run `composer dump-autoload` to regenerate it. PHPantom reads the classmap at startup. -3. **The class is in a directory not covered by `autoload` or `autoload-dev`.** Check that your `composer.json` PSR-4 mappings cover the directory where the class lives. \ No newline at end of file +3. **The class is in a directory not covered by `autoload` or `autoload-dev`.** Check that your `composer.json` PSR-4 mappings cover the directory where the class lives.