You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with "svelte" extension, brace formatting is not allowing one to use allman style. It works just fine on "typescript" itself. It works on the upper if-clauses, but not if they're nested.
Reproduction
try to write nested if-clauses in allman style
Expected behaviour
It should indent just fine.
System Info
OS: Windows
IDE: VSCode, Cursor
Which package is the issue about?
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
The svelte language server doesn't support on-type format, so it's definitely not formatting that caused the indent change. It's more likely to be an issue with VSCode itself. Besides, the same problem also exists in HTML files. It might be we need to tweak some TextMate indentation rules to make it work. But the TextMate language configuration is mostly regex-based, so it can be quite limited and not really possible to make everyone happy.
Supporting on-type format doesn't help either, Since we rely on Prettier for the formatting but Prettier doesn't have a configuration to format it this way. So I think we won't be able to fix it, at least not anytime soon.
Describe the bug
When working with "svelte" extension, brace formatting is not allowing one to use allman style. It works just fine on "typescript" itself. It works on the upper if-clauses, but not if they're nested.
Reproduction
try to write nested if-clauses in allman style
Expected behaviour
It should indent just fine.
System Info
Which package is the issue about?
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: