Skip to content

Commit cca36c3

Browse files
committed
Provide working instructions for VS Code
1 parent 430702f commit cca36c3

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

docs/SETUP.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,22 @@ vim.lsp.enable('phpantom')
7878

7979
### VS Code
8080

81-
> [!NOTE]
82-
> This configuration is untested. If you get it working (or run into issues), please [open an issue](../../issues).
83-
84-
Use a generic LSP client extension such as [LSP-client](https://github.com/nicolo-ribaudo/vscode-lsp-client) and configure it to run `phpantom_lsp` over stdio for PHP files.
81+
1. **Install a generic LSP client extension.**
82+
- We recommend [Generic LSP Client (v2)](https://marketplace.visualstudio.com/items?itemName=zsol.vscode-glspc) for maximum flexibility.
83+
- Install via VS Code Marketplace:
84+
```vscode-extensions
85+
zsol.vscode-glspc
86+
```
87+
88+
2. **Download PHPantom LSP binary:**
89+
- Download: [GitHub Releases](https://github.com/AJenbo/phpantom_lsp/releases/latest)
90+
- Extract the binary and put it where you like
91+
92+
3. **Configure the extension:**
93+
- Open VS Code settings for Generic LSP Client (v2).
94+
- Set the path to your actual binary location.
95+
- Add Language ID `php`
96+
- Restart VS Code
8597
8698
### Sublime Text
8799

0 commit comments

Comments
 (0)