Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Document alternative method to providing intelephense license key (#34502)

Stephen Samra42b2b65241fe
diff --git a/docs/src/languages/php.md b/docs/src/languages/php.md
index 2ddb93c8d5b..9cb7c40762e 100644
--- a/docs/src/languages/php.md
+++ b/docs/src/languages/php.md
@@ -27,7 +27,7 @@ which php
## Intelephense
-[Intelephense](https://intelephense.com/) is a [proprietary](https://github.com/bmewburn/vscode-intelephense/blob/master/LICENSE.txt#L29) language server for PHP operating under a freemium model. Certain features require purchase of a [premium license](https://intelephense.com/). To use these features you must place your [licence.txt file](https://intelephense.com/faq.html) at `~/intelephense/licence.txt` inside your home directory.
+[Intelephense](https://intelephense.com/) is a [proprietary](https://github.com/bmewburn/vscode-intelephense/blob/master/LICENSE.txt#L29) language server for PHP operating under a freemium model. Certain features require purchase of a [premium license](https://intelephense.com/).
To switch to `intelephense`, add the following to your `settings.json`:
@@ -41,6 +41,20 @@ To switch to `intelephense`, add the following to your `settings.json`:
}
```
+To use the premium features, you can place your [licence.txt file](https://intelephense.com/faq.html) at `~/intelephense/licence.txt` inside your home directory. Alternatively, you can pass the licence key or a path to a file containing the licence key as an initialization option for the `intelephense` language server. To do this, add the following to your `settings.json`:
+
+```json
+{
+ "lsp": {
+ "intelephense": {
+ "initialization_options": {
+ "licenceKey": "/path/to/licence.txt"
+ }
+ }
+ }
+}
+```
+
## PHPDoc
Zed supports syntax highlighting for PHPDoc comments.