From 8e12fd52908ecc7d53d1b456fe3b10e0833f1a63 Mon Sep 17 00:00:00 2001 From: Karl Grasegger Date: Fri, 8 Apr 2022 17:57:46 +0000 Subject: PHP roots and languageserver improvements (#2031) Co-authored-by: Karl Grasegger --- book/src/generated/lang-support.md | 2 +- languages.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 9039ca15..6331b059 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -46,7 +46,7 @@ | ocaml-interface | ✓ | | | | | org | ✓ | | | | | perl | ✓ | ✓ | ✓ | | -| php | ✓ | ✓ | ✓ | | +| php | ✓ | ✓ | ✓ | `intelephense` | | prolog | | | | `swipl` | | protobuf | ✓ | | ✓ | | | python | ✓ | ✓ | ✓ | `pylsp` | diff --git a/languages.toml b/languages.toml index 8c91db9f..f331edfe 100644 --- a/languages.toml +++ b/languages.toml @@ -428,7 +428,8 @@ scope = "source.php" injection-regex = "php" file-types = ["php"] shebangs = ["php"] -roots = [] +roots = ["composer.json", "index.php"] +language-server = { command = "intelephense", args = ["--stdio"] } indent = { tab-width = 4, unit = " " } [[grammar]] -- cgit v1.2.3-70-g09d2