Skip to content

Add Visual Studio 2026 extension support#2

Open
Granwest-Iknight wants to merge 3 commits intomasterfrom
feature/vs-2026-extension
Open

Add Visual Studio 2026 extension support#2
Granwest-Iknight wants to merge 3 commits intomasterfrom
feature/vs-2026-extension

Conversation

@Granwest-Iknight
Copy link
Copy Markdown
Collaborator

Summary

  • Adds new Visual Studio 2026 extension project (TSqlFormatter.VS2026)
  • Supports Visual Studio 2022 (17.0), 2026 (19.0), and later versions
  • Uses traditional VSSDK model for broad compatibility
  • Includes format command, options dialog with WPF UI, and persistent settings

Changes

  • New extension project with full formatting support
  • Format command accessible via Tools menu and keyboard shortcut
  • Options dialog for configuring formatter settings
  • Settings persistence using VS settings store
  • Updated solution and documentation

Test plan

  • Build solution with msbuild TSqlFormatter.SSMS21.sln /p:Configuration=Release
  • Install VSIX in Visual Studio 2022+
  • Test Format SQL command on SQL files
  • Verify options dialog opens and saves settings correctly

🤖 Generated with Claude Code

Granwest-Iknight and others added 3 commits December 1, 2025 11:01
Created a new Visual Studio extension (TSqlFormatter.VS2026) that brings
T-SQL formatting capabilities to Visual Studio 2022, 2026, and later versions.

New Project:
- TSqlFormatter.VS2026 - Visual Studio IDE extension
- Supports VS 2022 (17.0), 2026 (19.0), and later
- Targets Community, Professional, and Enterprise editions
- Uses traditional VSSDK model for broad compatibility

Key Features:
- Same formatting engine and options as SSMS extension
- Dedicated launch profiles for VS 2022 and VS 2026
- Support for both C: and F: drive installations
- Full options dialog with persistent settings
- Keyboard shortcut support (Ctrl+K, Ctrl+F)

Technical Details:
- Based on the proven SSMS extension architecture
- Shared TSqlFormatter.Core library for consistent formatting
- Open-ended version range [17.0,) for future VS versions
- Separate VSIX manifest targeting VS IDE (not SSMS)

Documentation:
- Updated README.md with VS extension installation instructions
- Updated CLAUDE.md with build commands and architecture notes
- Added comprehensive launch settings with common installation paths

Solution Structure:
- Added TSqlFormatter.VS2026 project to TSqlFormatter.SSMS21.sln
- Now builds both SSMS and VS extensions in one solution

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed invalid JSON comments in launchSettings.json (JSON doesn't support //)
- Changed DialogWindow to Window (more compatible base class)
- Changed ShowModal() to ShowDialog() (Window method)
- Extension now builds successfully in Visual Studio

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants