Skip to content

Re-order and format disagree on code region formatting #337

Description

@NicholasBolen

Format produces:

extends Node


func foo() -> void:
	print("foo")

#region Test Region
func bar() -> void:
	print("bar")
#endregion

Reorder adds an extra new line, producing:

extends Node


func foo() -> void:
	print("foo")


#region Test Region
func bar() -> void:
	print("bar")
#endregion

This code will continue flipping between these states as the code is formatted/reordered. I usually run format then reorder, but now my CI fails since it thinks the code isn't formatted properly.

I prefer the result of reorder as it keeps the consistent 2 blank lines, but either works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions