godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.47k stars 148 forks source link

Binary operators not maintaining correct spaces #627

Closed hiiii5 closed 2 months ago

hiiii5 commented 3 months ago

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

DaelonSuzuka commented 3 months ago

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

DaelonSuzuka commented 2 months ago

This should be fixed now in #605:

image

hiiii5 commented 2 months ago

Awesome thank you!