vscode-sqltools icon indicating copy to clipboard operation
vscode-sqltools copied to clipboard

Setting formatLanguages to []. doesn't disable formatting

Open jtommi opened this issue 3 years ago • 2 comments

Description As explained in https://github.com/mtxr/vscode-sqltools/issues/116, setting formatLanguages to [] should disable formatting, but it doesn't

This was also mentioned in July on the issue https://github.com/mtxr/vscode-sqltools/issues/116#issuecomment-658196456

How to reproduce Steps to reproduce the behavior:

  1. Go to VS Code Settings UI
  2. Search for sqltools.formatLanguages
  3. Remove sql
  4. Create a SQL file with weird formatting
  5. Trigger formatting (for my case that's saving it because I have "Format on save" enabled

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • SQLTools Version v0.23.0
  • VSCode Version: 1.51.1
  • OS: Windows
  • Driver:
    • [ ] PostgreSQL/Redshift
    • [x] MySQL/MariaDB
    • [ ] MSSQL/Azure
    • [ ] SQLite
    • [ ] Other? Which...

jtommi avatar Dec 11 '20 15:12 jtommi

The same issue with Postgres. Could you please fix it?

maxx27 avatar Jun 06 '23 07:06 maxx27

Hello, I have the same issue, I would like to disable formatting of .sql files but this doesn't change the behavior. Can it be fixed?

alex-marty avatar Oct 11 '23 13:10 alex-marty

Please make sure you restart VS Code after you set "sqltools.formatLanguages": [],

gjsjohnmurray avatar Mar 26 '24 16:03 gjsjohnmurray