Файли
openidea/languages/axaml.toml
T
l0ng-ai 26e7847457 feat(languages): Avalonia XAML (.axaml) as its own language with an Avalonia language server (#5708)
.axaml files opened as plain XML. They are now the Avalonia XAML language: XML grammar, highlighting, folding and outline as before, XAML's 4-space indent, Surround With tag, and the axsg-lsp language server (installed by hand as a prerelease dotnet tool; the Language Servers page shows the command and takes a custom path), with LemMinX as the XML fallback. .xaml stays XML.

Fixes #5664
2026-11-25 07:28:42 +08:00

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

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
id = "axaml"
name = "Avalonia XAML"
extensions = ["axaml"]
block-comment = ["<!--", "-->"]
indent = { tab-size = 4, 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"]
# Avalonia-aware completion, diagnostics, navigation and formatting (controls, properties,
# bindings, resources), from the project's compiled assemblies.
[[language-servers]]
name = "axsg-lsp"
command = "axsg-lsp"
root-markers = ["*.sln", "*.slnx", "*.csproj", "Directory.Build.props"]
install-hint = "dotnet tool install --global XamlToCSharpGenerator.LanguageServer.Tool --prerelease (https://github.com/wieslawsoltes/XamlToCSharpGenerator)"
[[language-servers]]
name = "lemminx"
# Alternative: plain XML editing support, used only when the server above is not installed.
fallback = true
command = "lemminx"
install-hint = "Install Eclipse LemMinX (https://github.com/redhat-developer/vscode-xml/releases) and put the lemminx binary on PATH"