godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.55k stars 163 forks source link

GDScript formatter adds space between pow operator "**" #602

Open JoelBesada opened 7 months ago

JoelBesada commented 7 months ago

Godot version

4.2.1

VS Code version

1.87.0-insider

Godot Tools VS Code extension version

2.0.0

System information

macOS Sonoma 14.3.1

Issue description

When formatting gdscript, any pow operators ** gets a space inserted in between * *, resulting in invalid syntax.

Steps to reproduce

Run the formatter on the following line of code: var value = 10 ** 5

DaelonSuzuka commented 7 months ago

Thank you for reporting this. I can't believe I forgot the exponent operator!