microsoft / microsoft/vscode-pgsql

bug: format not working as expected

Open
#101 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
No language data
Stars
395
Forks
33
Avg merge
1h 46m
Merged PRs (30d)
3

Description

Describe the bug

When pressing format, the formatting of my sql query gets scrambled

To Reproduce

Steps to reproduce the behavior:

  1. disable psql
  2. write an sql query
  3. format with language sql
  4. enable psql
  5. format again

Expected behavior
should format normally

Screenshots

Corporate code, can't add screenshots.

VS Code version

Version: 1.101.2
Commit: 2901c5ac6db8a986a5666c3af51ff804d05af0d4
Date: 2025-06-24T20:27:15.391Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Linux x64 6.15.4-arch2-1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed VS Code steps with psql disabled and enabled, using an SQL query and the SQL formatter. Compare the formatting results in both states; done means formatting remains consistent after psql is re-enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.