godot-vscode-plugin icon indicating copy to clipboard operation
godot-vscode-plugin copied to clipboard

Formatter will break code with << and scientific notiation

Open 0x0ACB opened this issue 1 year ago • 3 comments

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 avatar Apr 26 '24 16:04 0x0ACB

This should already be fixed in #605.

DaelonSuzuka avatar Apr 26 '24 18:04 DaelonSuzuka

It is not fixed, unfortunately

image

cjmaxik avatar Jun 20 '24 06:06 cjmaxik

@cjmaxik #605 hasn't been merged yet.

DaelonSuzuka avatar Jun 20 '24 08:06 DaelonSuzuka