godotengine / godot-vscode-plugin

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

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

Open 0x0ACB opened 2 months ago

0x0ACB commented 2 months ago

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.

DaelonSuzuka commented 2 months ago

This should already be fixed in #605.

cjmaxik commented 2 weeks ago

It is not fixed, unfortunately

image

DaelonSuzuka commented 2 weeks ago

@cjmaxik #605 hasn't been merged yet.