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

Binary operators not maintaining correct spaces #627

Closed
hiiii5 opened this issue Mar 17, 2024 · 3 comments
Closed

Binary operators not maintaining correct spaces #627

hiiii5 opened this issue Mar 17, 2024 · 3 comments
Labels

Comments

@hiiii5
Copy link

hiiii5 commented Mar 17, 2024

Godot version

4.2.1 stable

VS Code version

1.87

Godot Tools VS Code extension version

2.0.0

System information

Windows 11

Issue description

When working with collision masks, upon formatting, binary operators are moved in odd ways causing the code to not compile.

Steps to reproduce

The following code snippet will not format from this:
collision_mask = 1 << 1 | 1 << 3
to this:
collision_mask = 1 < < 1|1 < < 3

@hiiii5 hiiii5 added the bug label Mar 17, 2024
@DaelonSuzuka
Copy link
Collaborator

This has already been reported and will be fixed in #605.

@DaelonSuzuka
Copy link
Collaborator

DaelonSuzuka commented Apr 6, 2024

This should be fixed now in #605:

image

@hiiii5
Copy link
Author

hiiii5 commented Apr 7, 2024

Awesome thank you!

@hiiii5 hiiii5 closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants