diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50abc36..cc250db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,6 +114,19 @@ jobs: VERSION: ${{ steps.version.outputs.VERSION }} run: gh release upload "v$env:VERSION" releases/PlanViewer.Ssms.vsix releases/InstallSsmsExtension.exe --clobber + # Publish to the SSMS Gallery (https://ssmsgallery.azurewebsites.net, issue 343). + # The gallery extracts version/description from the vsixmanifest, so the + # upload filename is irrelevant. continue-on-error: a gallery outage must + # never fail the release. bash so `curl` is curl.exe, not the pwsh alias. + - name: Publish SSMS extension to SSMS Gallery + if: steps.ssms.outputs.BUILT == 'true' + continue-on-error: true + shell: bash + run: | + echo "Uploading PlanViewer.Ssms.vsix to the SSMS Gallery..." + curl -sS -f "https://ssmsgallery.azurewebsites.net/api/upload" \ + -F "file=@releases/PlanViewer.Ssms.vsix" + # ── SignPath code signing (Windows only, skipped if secret not configured) ── - name: Check if signing is configured id: signing diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 2b7cd2c..23fe79c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -15,7 +15,7 @@ Tests and server/ projects are outside src/ and are unaffected. --> - 1.11.2 + 1.12.0 Erik Darling Darling Data LLC Performance Studio diff --git a/src/PlanViewer.App/Controls/QuerySessionControl.Format.cs b/src/PlanViewer.App/Controls/QuerySessionControl.Format.cs index 9ead789..eea3f84 100644 --- a/src/PlanViewer.App/Controls/QuerySessionControl.Format.cs +++ b/src/PlanViewer.App/Controls/QuerySessionControl.Format.cs @@ -86,9 +86,7 @@ private async void Format_Click(object? sender, RoutedEventArgs e) try { - var settings = SqlFormatSettingsService.Load(out var loadError); - if (loadError != null) - SetStatus("Warning: using default format settings (load failed)"); + var settings = AppSettingsService.Load().FormatOptions ?? new SqlFormatSettings(); var (formatted, errors) = await Task.Run(() => SqlFormattingService.Format(sql, settings)); @@ -150,10 +148,4 @@ private async void Format_Click(object? sender, RoutedEventArgs e) FormatButton.IsEnabled = true; } } - - private void FormatOptions_Click(object? sender, RoutedEventArgs e) - { - var dialog = new Dialogs.FormatOptionsWindow(); - dialog.ShowDialog(GetParentWindow()); - } } diff --git a/src/PlanViewer.App/Controls/QuerySessionControl.axaml b/src/PlanViewer.App/Controls/QuerySessionControl.axaml index a9aefad..f651f35 100644 --- a/src/PlanViewer.App/Controls/QuerySessionControl.axaml +++ b/src/PlanViewer.App/Controls/QuerySessionControl.axaml @@ -92,10 +92,6 @@ Height="28" Padding="10,0" FontSize="12" Theme="{StaticResource AppButton}" ToolTip.Tip="Format the SQL query"/> -