дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +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]>
30 рядки
1.3 KiB
TOML
30 рядки
1.3 KiB
TOML
id = "xml"
|
||
name = "XML"
|
||
extensions = ["xml", "xsd", "xsl", "xslt", "svg", "plist", "entitlements", "xcprivacy", "csproj", "fsproj", "vbproj", "props", "targets", "nuspec", "xaml", "resx", "wsdl", "fxml", "iml", "jnlp", "rss", "atom", "xliff", "xlf", "storyboard", "xib", "tld", "pom"]
|
||
filenames = ["NuGet.Config", "Directory.Build.targets", "web.config", "app.config"]
|
||
first-line = "^<\\?xml\\b"
|
||
block-comment = ["<!--", "-->"]
|
||
indent = { tab-size = 2, insert-spaces = true }
|
||
ui-mode = "XML"
|
||
tree-sitter = "xml"
|
||
|
||
# Rainbow brackets › angle: editor syntax nodes of markup tags, whose `<` `>` pair up.
|
||
[rainbow-brackets]
|
||
tags = ["OpenTag", "CloseTag", "SelfClosingTag"]
|
||
|
||
[[language-servers]]
|
||
name = "lemminx"
|
||
command = "lemminx"
|
||
install-hint = "Install Eclipse LemMinX (https://github.com/redhat-developer/vscode-xml/releases) and put the lemminx binary on PATH"
|
||
|
||
# PHPantom, where it is the project's PHP server: the same for Symfony's XML
|
||
# configuration, Doctrine's XML mappings and XLIFF translation catalogues.
|
||
[[language-servers]]
|
||
name = "phpantom"
|
||
command = "phpantom_lsp"
|
||
args = []
|
||
root-markers = ["composer.json", ".phpantom.toml", "index.php"]
|
||
joins = "php"
|
||
files = ["**/*.xml", "**/*.xlf", "**/*.xliff"]
|
||
install-hint = "Install PHPantom in Settings › Languages & Frameworks › Language Servers"
|