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

Formatter will break code with << and scientific notiation #653

Closed
0x0ACB opened this issue Apr 26, 2024 · 4 comments
Closed

Formatter will break code with << and scientific notiation #653

0x0ACB opened this issue Apr 26, 2024 · 4 comments
Labels

Comments

@0x0ACB
Copy link

0x0ACB commented Apr 26, 2024

Godot version

4.2.2

VS Code version

1.88.1

Godot Tools VS Code extension version

2.0.0

System information

Windows 10

Issue description

The formatter will always add a space beteween << resulting in < < which is not a valid operator.
It will also add a space after the 'e' in scientific notation. eg 1e-1 will result in 1e -1 which is also not valid.

Steps to reproduce

Use bitshifts or scientific notation in a script and save with the plugin enabled.

@0x0ACB 0x0ACB added the bug label Apr 26, 2024
@DaelonSuzuka
Copy link
Collaborator

This should already be fixed in #605.

@cjmaxik
Copy link

cjmaxik commented Jun 20, 2024

It is not fixed, unfortunately

image

@DaelonSuzuka
Copy link
Collaborator

@cjmaxik #605 hasn't been merged yet.

@DaelonSuzuka
Copy link
Collaborator

Formatting << was fixed a while ago, and scientific notation should be fixed in the next release.

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

3 participants