дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 01:31:41 +02:00
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]>
32 рядки
1.2 KiB
TOML
32 рядки
1.2 KiB
TOML
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"
|