Skip to content

Drop the unused AvaloniaEdit.TextMate.Grammars package - #552

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/545-drop-grammars-package
Sep 22, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
fix/545-drop-grammars-package

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Fixes #545. The package was never referenced by app code — its RegistryOptions/ThemeName live in a namespace the app never imports, while every call site uses TextMateSharp.Grammars (still directly referenced at 2.0.4). Removing it drops Newtonsoft.Json 13.0.1 and the TextMateSharp 1.0.23 floor from the resolved graph. Verified: Release build 0/0, full suite 712 passed / 1 known skip, TextMateSharp still resolves via the direct pin, Newtonsoft gone from project.assets.json. Deliberately excluded from the Avalonia 12 PR to keep that release migration-only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sr43FouJ6RizUyoWQeR5FX

No app code ever referenced it: the package ships its own
RegistryOptions and ThemeName under the AvaloniaEdit.TextMate.Grammars
namespace, and every call site binds the TextMateSharp.Grammars pair
instead, which arrives through the TextMateSharp.Grammars 2.0.4
reference that stays. Dropping it also removes Newtonsoft.Json 13.0.1
and the stale TextMateSharp 1.0.23 floor from the resolved graph.

Kept out of the Avalonia 12 migration deliberately (a runtime-graph
change had no place in that release); shipping now as its own change.

Fixes #545

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sr43FouJ6RizUyoWQeR5FX
@claude

claude Bot commented Sep 22, 2026

Copy link
Copy Markdown

Reviewed. This is a clean, well-scoped removal — confirmed AvaloniaEdit.TextMate.Grammars isn't referenced anywhere in the repo (no imports, no other csproj/package-management references), and that the RegistryOptions/ThemeName call sites in QuerySessionControl.Editor.cs, QuerySessionControl.Schema.cs, and PlanViewer.App/Controls/PlanViewerControl.Schema.cs resolve from TextMateSharp.Grammars (still pinned at 2.0.4), not the package being dropped. No other project references it, no PlanViewer.Ssms version files are affected, and no T-SQL/untrusted-input surface is touched. Nothing to flag.

@erikdarlingdata
erikdarlingdata merged commit 399b420 into dev Sep 22, 2026
3 checks passed
@erikdarlingdata
erikdarlingdata deleted the fix/545-drop-grammars-package branch September 22, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant