Skip to content

feat(formatter): allow to skip function bodies#681

Merged
psteinroe merged 2 commits intomainfrom
feat/formatter-skip-substatements
Feb 12, 2026
Merged

feat(formatter): allow to skip function bodies#681
psteinroe merged 2 commits intomainfrom
feat/formatter-skip-substatements

Conversation

@psteinroe
Copy link
Copy Markdown
Collaborator

@psteinroe psteinroe commented Feb 12, 2026

Summary

Adds a new formatter config option skipFnBodies that, when true, preserves SQL function bodies verbatim without formatting.

Usage

In postgrestools.jsonc:

{
  "format": {
    "skipFnBodies": true
  }
}

Or via CLI:

postgres-language-server format --skip-fn-bodies

Default

false - function bodies are formatted (existing behavior)

@psteinroe psteinroe merged commit 5361e14 into main Feb 12, 2026
9 checks passed
@psteinroe psteinroe deleted the feat/formatter-skip-substatements branch February 12, 2026 22:38
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