Closed witnessmonolith closed 7 months ago
Yeah this is a difficult case to detect with the parser I'm using. I'll add this to the test suite.
Good news, this was already being parsed correctly! It was just missing a rule to control the spacing, which is comparatively much easier.
Thanks for catching and reporting this!
Godot version
4.2.1 stable
VS Code version
1.85.2
Godot Tools VS Code extension version
2.0.0 (current main branch, e2f2dc4)
System information
Windows 11 Home
Issue description
Hello. Seems like I've detected a minor but quite annoying bug.
With the code line like this:
Formatter makes it like this, adding a redundant spacing after the
-
operator:Surprisingly enough, the following line from the same document is formatted correctly:
The file in question is
cubio.gd
from the official "3D Kinematic character" demoSteps to reproduce
npm run package
way to build it)cubio.gd
into the VSCodeformat on save
VSCode option is enabled)-cam_basis.get_euler().x
expression