дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
.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
27 рядки
1.1 KiB
TOML
27 рядки
1.1 KiB
TOML
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"
|