Файли
openidea/languages/blade.toml
T
Anders JenboтаAJenbo d4a2a84c36 fix(php): give PHPantom the template, configuration and settings support it has (#7827)
PHPantom has its own Blade, Twig and framework support, but Twig, YAML and XML files were never sent to it, laravel-lsp kept running alongside it, and it was never told the project is trusted. PHPantom now joins twig, yaml and xml (XML limited to *.xml, *.xlf, *.xliff), replaces laravel-lsp, gets .phpantom.toml as a root marker, and configure_phpantom sends workspaceTrusted (servers only start outside Restricted Mode) plus the excluded folders and PHP file-type extensions as its indexing filters at startup and on every configuration change. Docs updated.

Co-authored-by: AJenbo <[email protected]>
2026-12-03 23:06:52 +08:00

73 рядки
2.3 KiB
TOML
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
id = "blade"
name = "Blade"
# Laravel's views: `welcome.blade.php`. The compound extension wins over `php`.
extensions = ["blade.php"]
block-comment = ["{{--", "--}}"]
indent = { tab-size = 4, insert-spaces = true }
# The frontend's own mode (`src/editor/core/cm/blade.ts`): HTML, with directives,
# echoes and the PHP inside them highlighted.
ui-mode = "Blade"
# The PHP servers, in `php.toml`'s order, so a view is served by the server that
# serves the project's PHP. Phoxite knows the file as a Blade view; the others
# are told `php`, as they were before Blade was a language of its own. PHPantom
# serves the view as Blade all the same: it goes by the `.blade.php` extension.
[[language-servers]]
name = "intelephense"
command = "intelephense"
args = ["--stdio"]
root-markers = ["composer.json", ".phpactor.json", "index.php"]
install-hint = "npm i -g intelephense"
resync-on-configuration = true
language-id = "php"
[[language-servers]]
name = "phpantom"
ignored-progress-token-prefixes = ["find_references", "goto_implementation"]
fallback = true
command = "phpantom_lsp"
args = []
root-markers = ["composer.json", ".phpantom.toml", "index.php"]
replaces = ["laravel-lsp"]
install-hint = "Install PHPantom in Settings › Languages & Frameworks › Language Servers"
language-id = "php"
[[language-servers]]
name = "phpactor"
fallback = true
command = "phpactor"
args = ["language-server"]
root-markers = ["composer.json", ".phpactor.json"]
install-hint = "Install Phpactor in Settings › Languages & Frameworks › Language Servers (it runs on PHP)"
language-id = "php"
# Completion, hover, signature help, navigation and problems inside the view.
[[language-servers]]
name = "phoxite"
dynamic-documents = true
fallback = true
command = "phoxite-lsp"
args = []
root-markers = ["composer.json", "artisan", "index.php"]
replaces = ["laravel-lsp"]
install-hint = "Install Phoxite in Settings › Languages & Frameworks › Language Servers"
[[language-servers]]
name = "devsense-php-ls"
fallback = true
command = "devsense-php-ls"
args = []
root-markers = ["composer.json", "index.php"]
replaces = ["laravel-lsp"]
install-hint = "npm i -g devsense-php-ls"
language-id = "php"
[[language-servers]]
name = "laravel-lsp"
command = "laravel-lsp"
args = []
root-markers = ["artisan"]
require-root-marker = true
install-hint = "composer global require laravel/lsp"
language-id = "php"