-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode plugin formatting no longer uses editor tabSize
configuration when indenting blocks
#993
Comments
I could reproduce too and found the issue, when we switched to wasm we didn't implement passing the |
Right now the API only has 1 input, the schema string: https://github.com/prisma/prisma-fmt-wasm/blob/2cdafcb802f3cc5c6fad1479c87307670de7b744/src/lib.rs#L4-L6 |
Opened prisma/prisma-engines#2538 to fix this. |
tabSize is now taken into account again. I confirmed this through manual testing. closes #993
Is this fixed in v. 3.7.0? I seem to still be having this issue 🤔. |
No, it will be fixed in 3.8.0. You can try it out using the |
Bug description
Prior to v3.6, the VSCode extension would indent blocks with a tab size that would take into consideration editor / user settings.
How to reproduce
Using v3.6
settings.json
tabSize
configurationExpected behavior
The formatted code's block indention would match the tab size specified in the user / editor settings.
Using v3.5
settings.json
tabSize
configurationPrisma information
N/A
Environment & setup
The text was updated successfully, but these errors were encountered: