phpls-rs is a PHP language server written in Rust.
docs/index.md is the entrypoint of the (growing, incomplete) architecture documentation.
Currently it is only possible to install the development version manually. In the future there will of course be an installable VSCode extension in the VSCode marketplace.
# Clone the repository
git clone https://github.com/sawmurai/phpls-rs.git
cd phpls-rs
# Build the language server binary
cargo build --release
# The binary is now here, you will need the path to it later
ls `pwd`/target/release/phpls-rs
# Build the VSCode extension
cd client
yarn
yarn build
Clone the phpstorm stubs
git clone https://github.com/JetBrains/phpstorm-stubs.git
Install the client/phpls-rs-client-0.0.1.vsix
file manually in VSCode:
- Open VSCode
- Open the extension menu
- Click
...
and select "Install from VSIX" - Open the extension config (search for phpls)
- Put the path to the binary (see instructions above) into the "binary" field
- Put the path to the PHPStorm stubs into the "PHP-stubs" field
This is an early development version! Do not use this in production yet (unless you also like to live dangerously ;) ). You might encounter high CPU usage which usually means that something is running in an infinite loop or, low CPU usage but no more response ... that means we are looking a deadlock.
Should you be able to isolate the problem I would very much appreciate an issue here :)