Skip to content

Allow line breaks in chained method calls #217

@pixelcat-gh

Description

@pixelcat-gh

Hello! Many thanks for the tool, I have found it very useful. However, there is currently some behavior that breaks the philosophy of allowing you to choose whether you want to wrap lines or not.

Consider the following code, where GDScript explicitly allows line breaks:

	var temp: String = (
		"ABCDEF"
			.replace("A", "111111111111111111111111111111111111111111111111")
			.replace("B", "2")
			.replace("C", "3")
	)
	print(temp)

When formatted, the line breaks collapse, which I believe is an oversight:

	var temp: String = (
		"ABCDEF".replace("A", "111111111111111111111111111111111111111111111111").replace("B", "2").replace("C", "3")
	)
	print(temp)

Current version of the tool: 0.18.2;
Platform: Linux;
Editor: Zed;
Godot version: 4.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions