Skip to content
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

Braces are not auto indented properly #12

Open
razvbir opened this issue Jul 11, 2024 · 2 comments
Open

Braces are not auto indented properly #12

razvbir opened this issue Jul 11, 2024 · 2 comments

Comments

@razvbir
Copy link

razvbir commented Jul 11, 2024

I think braces became optional in scala3 but the auto indent seems to not be working properly.

image

Auto format fixes this when saving the file but I find this problem a little bit annoying.

@tgodzik
Copy link
Contributor

tgodzik commented Jul 12, 2024

For Metals in VS Code we actually have to specify the logic for indentation, maybe it's fairly similiar in Zed? Someone could take a look at other extensions and see how they handle it (I would assume some tree sitter magic would help 🤔 )

@razvbir
Copy link
Author

razvbir commented Jul 12, 2024

I've found this PR that seems to be related

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

No branches or pull requests

2 participants