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

[golang] "The current node is already splitted" when attempting to split a multiline statement #149

Open
protiumx opened this issue Feb 19, 2024 · 1 comment

Comments

@protiumx
Copy link

Split stopped working for multiline statements. e.g.

func New(param1 string, param2 int,
param3 bool) { ... }

var t := Some{ fieldA: "",
fieldB: 0}

This was working before ecc6584
Would it be possible to restore it?

This functionality is extremely helpful when dealing with bad formatted code (multiline).

@Wansmer
Copy link
Owner

Wansmer commented Feb 21, 2024

This functionality is extremely helpful when dealing with bad formatted code (multiline).

treesj is not a formatter, maybe better to use built-in lsp formatter to format code? :-)

Would it be possible to restore it?

I don't want to restore it, but maybe later I will add an option to manage this behavior.

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

No branches or pull requests

2 participants