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

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

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
id = "yaml"
name = "YAML"
formatter = { tool = "prettier", parser = "yaml", range = false }
extensions = ["yaml", "yml"]
filenames = [".clang-format", ".clang-tidy", ".clangd", ".gemrc", "pnpm-lock.yaml", "CITATION.cff"]
first-line = "^%YAML"
line-comment = "#"
indent = { tab-size = 2, insert-spaces = true }
ui-mode = "YAML"
tree-sitter = "yaml"
[[language-servers]]
name = "yaml-language-server"
command = "yaml-language-server"
args = ["--stdio"]
install-hint = "npm i -g yaml-language-server"
[language-servers.settings.yaml.schemas]
"https://raw.githubusercontent.com/compose-spec/compose-go/v2.16.2/schema/compose-spec.json" = [
"compose.yml",
"compose.yaml",
"compose.*.yml",
"compose.*.yaml",
"docker-compose.yml",
"docker-compose.yaml",
"docker-compose.*.yml",
"docker-compose.*.yaml",
"*-compose.yml",
"*-compose.yaml",
"*-compose.*.yml",
"*-compose.*.yaml",
"*.compose.yml",
"*.compose.yaml",
"*.compose.*.yml",
"*.compose.*.yaml",
]
# PHPantom, where it is the project's PHP server: completion, navigation and
# references of the PHP classes, services, routes and other names Symfony and
# Drupal configuration uses, and problems for the ones nothing declares.
[[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"