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

When using multiline strings (""") in GDScript, the formatter incorrectly removes spaces before string interpolation. #761

Open
Hot-key opened this issue Dec 3, 2024 · 1 comment

Comments

@Hot-key
Copy link

Hot-key commented Dec 3, 2024

Godot version

4.4.dev5

VS Code version

1.93.1

Godot Tools VS Code extension version

2.3.0

System information

osx 15.1.1(mac os)

Issue description

The formatter removes the space before the interpolated variable {test}, which affects code readability and consistency.

Steps to reproduce

Initial code:

description = """
test {test}
"""

After formatting:

description = """
test{test}
"""
@DaelonSuzuka
Copy link
Collaborator

This appears to have already been fixed in #756, but I'm adding some tests cases to make sure.

The fix will be published in extension version 2.4.0, hopefully later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants