Файли
openidea/languages/twig.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

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

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
id = "twig"
name = "Twig"
# Also `page.html.twig`, `mail.txt.twig`: the last extension decides.
extensions = ["twig"]
block-comment = ["{#", "#}"]
indent = { tab-size = 4, insert-spaces = true }
# The frontend's own mode (`src/editor/core/cm/twig.ts`): HTML, with Twig's
# tags, expressions and comments highlighted.
ui-mode = "Twig"
# Phoxite, where it is the project's PHP server: completion, hover, navigation,
# rename and problems of the template's names (functions, filters, routes, other
# templates), the outline, formatting and semantic highlighting.
[[language-servers]]
name = "phoxite"
command = "phoxite-lsp"
args = []
root-markers = ["composer.json", "artisan", "index.php"]
joins = "php"
install-hint = "Install Phoxite in Settings › Languages & Frameworks › Language Servers"
# PHPantom, where it is the project's PHP server: completion, navigation,
# references and problems of template names, blocks, filters, functions, routes
# and the variables a render passes, with hover on the PHP behind them.
[[language-servers]]
name = "phpantom"
command = "phpantom_lsp"
args = []
root-markers = ["composer.json", ".phpantom.toml", "index.php"]
joins = "php"
install-hint = "Install PHPantom in Settings › Languages & Frameworks › Language Servers"