Skip to content

Formatting issue of lambda functions #938

@heppocogne

Description

@heppocogne

Godot version

Godot v4.5.stable

VS Code version

1.105.1

Godot Tools VS Code extension version

2.5.1

System information

Windows 11

Issue description

This issue may be related to #624.

If godotTools.formatter.denseFunctionParameters is true, the formatter seems to delete spaces wrongly in a specific case.

Steps to reproduce

Set godotTools.formatter.denseFunctionParameters to true and format the code contains lambda function.

for example:

tween.finished.connect(
	func():
		_is_tween_playing = false
)

tween.finished.connect(
	func():
		_is_tween_playing=false
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions