Split QuerySessionControl.axaml.cs into partial classes#328
Merged
Conversation
Move-only refactor; no behavior changes. QuerySessionControl.axaml.cs
(2,251 lines) split into 8 partials:
Editor (286) - syntax highlighting, context menu, key/wheel, zoom
Schema (355) - ShowSchemaInfoAsync + Format{Indexes,Columns} + BuildWithOptions
Connection (120) - Connect_Click + Populate/Fetch* metadata
Execution (477) - Execute/EstimatedPlan/GetActualPlan + CaptureAndShowPlan
Plans (368) - plan tab add/close/rename/context-menu + Compare picker
QueryStore (267) - QueryStore_Click + Overview + OpenQueryStoreForDatabaseAsync
Advice ( 24) - Human/Robot advice click + ShowAdviceWindow
Format (124) - Format_Click + FormatOptions + CopyRepro
Main file now 177 lines — usings, ctor, fields, AXAML wiring.
Build clean: 0 errors, 0 warnings on PlanViewer.App.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0810860 to
c0d3225
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move-only refactor of the second-largest file. Splits
QuerySessionControl.axaml.cs(2,096 lines) into 8 topical partial-class files.File sizes
QuerySessionControl.axaml.cs(main).Editor.cs.Schema.csShowSchemaInfoAsync,AddSchemaTab,Format{Indexes,Columns},BuildWithOptions.Connection.csConnect_Click,PopulateDatabases,Fetch{Server,Database}Metadata*.Execution.csExecute_Click/ExecuteEstimated_Click,CaptureAndShowPlan,GetActualPlan_Click.Plans.cs.QueryStore.csQueryStore_Click+ plan-list handoff.Advice.csShowAdviceWindow.Format.csFormat_Click,FormatOptions_Click,CopyRepro_ClickBehavior
Test plan
dotnet build PlanViewer.sln— 0 errors🤖 Generated with Claude Code