From 92a5cabc2491740c485ff352c7e6fa056c1835e8 Mon Sep 17 00:00:00 2001 From: rferraton <16419423+rferraton@users.noreply.github.com> Date: Fri, 17 Apr 2026 23:26:16 +0200 Subject: [PATCH 01/11] Query Editor SQL Formater with parameters options - init working --- .../Controls/QuerySessionControl.axaml | 10 ++ .../Controls/QuerySessionControl.axaml.cs | 25 ++++ .../Dialogs/FormatOptionsWindow.axaml | 41 ++++++ .../Dialogs/FormatOptionsWindow.axaml.cs | 114 ++++++++++++++++ src/PlanViewer.App/PlanViewer.App.csproj | 1 + .../Services/SqlFormatSettingsService.cs | 129 ++++++++++++++++++ .../Services/SqlFormattingService.cs | 71 ++++++++++ 7 files changed, 391 insertions(+) create mode 100644 src/PlanViewer.App/Dialogs/FormatOptionsWindow.axaml create mode 100644 src/PlanViewer.App/Dialogs/FormatOptionsWindow.axaml.cs create mode 100644 src/PlanViewer.App/Services/SqlFormatSettingsService.cs create mode 100644 src/PlanViewer.App/Services/SqlFormattingService.cs diff --git a/src/PlanViewer.App/Controls/QuerySessionControl.axaml b/src/PlanViewer.App/Controls/QuerySessionControl.axaml index 9d44cc6..fcafef1 100644 --- a/src/PlanViewer.App/Controls/QuerySessionControl.axaml +++ b/src/PlanViewer.App/Controls/QuerySessionControl.axaml @@ -69,6 +69,16 @@ Height="28" Padding="10,0" FontSize="12" IsEnabled="False" Theme="{StaticResource AppButton}" ToolTip.Tip="Execute the repro script and capture actual plan with runtime stats"/> + +