The code editor is built around AvaloniaEdit and the XAML language services in
the src/XamlVisualEditor.Xaml.* projects.
XamlVisualEditor.Xaml.Parsing parses XAML through XamlX and reports
diagnostics.XamlVisualEditor.Xaml.Ast stores mutable nodes with change tracking and
visitor support.XamlVisualEditor.Xaml.Serialization writes AST changes back to XAML text with
whitespace preservation and minimal edits.XamlVisualEditor.Sync coordinates bidirectional updates between text, AST,
designer, and collaboration surfaces.Prefer adding behavior through ViewModels, editor service abstractions, or extension commands. Keep UI-specific rendering in the editor view layer and keep language rules inside language service projects.