Skip to content

feat: add directory SQL formatting command#1

Merged
MayerTim merged 5 commits into
mainfrom
feature/directory-sql-formatting
Jun 9, 2026
Merged

feat: add directory SQL formatting command#1
MayerTim merged 5 commits into
mainfrom
feature/directory-sql-formatting

Conversation

@MayerTim

@MayerTim MayerTim commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a new SQLovely command for formatting multiple SQL files inside a selected directory.

Changes

  • Adds SQLovely: Format SQL Files in Directory
  • Opens a directory picker after running the command
  • Recursively formats *.sql files in the selected directory
  • Skips common local/build folders such as .git, node_modules, out and dist
  • Shows a confirmation dialog before changing files
  • Skips dirty/open files to avoid overwriting unsaved editor changes
  • Shows a summary with formatted, unchanged, skipped and failed file counts
  • Runs formatting without SQLovely Extras by default

Validation

  • npm run check
  • npm test
  • npm run package:vsix

@MayerTim MayerTim merged commit 46ce6a1 into main Jun 9, 2026
1 check passed
@MayerTim MayerTim deleted the feature/directory-sql-formatting branch June 9, 2026 19:17
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