on master help sign in
PHP roots and languageserver improvements (#2031)
8e12fd5Karl Grasegger
book/src/generated/lang-support.md+1−1
@@ -46,7 +46,7 @@
46| ocaml-interface | ✓ | | | |
46| ocaml-interface | ✓ | | | |
47| org | ✓ | | | |
47| org | ✓ | | | |
48| perl | ✓ | ✓ | ✓ | |
48| perl | ✓ | ✓ | ✓ | |
49−| php | ✓ | ✓ | ✓ | |
49+| php | ✓ | ✓ | ✓ | `intelephense` |
50| prolog | | | | `swipl` |
50| prolog | | | | `swipl` |
51| protobuf | ✓ | | ✓ | |
51| protobuf | ✓ | | ✓ | |
52| python | ✓ | ✓ | ✓ | `pylsp` |
52| python | ✓ | ✓ | ✓ | `pylsp` |
languages.toml+2−1
@@ -428,7 +428,8 @@ scope = "source.php"
428injection-regex = "php"
428injection-regex = "php"
429file-types = ["php"]
429file-types = ["php"]
430shebangs = ["php"]
430shebangs = ["php"]
431−roots = []
431+roots = ["composer.json", "index.php"]
432+language-server = { command = "intelephense", args = ["--stdio"] }
432indent = { tab-width = 4, unit = " " }
433indent = { tab-width = 4, unit = " " }
433
434
434[[grammar]]
435[[grammar]]