Replies: 1 comment
-
The Ruby LSP only integrates with formatters, it has no control over the results of formatting. In this case, you'd either need to configure the formatter to not auto-correct into a single line or - if you're using RuboCop - propose that its LSP mode stops auto-correcting this case, which they may be open to. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I create an if statement and I intend to put some logic in there but as soon as I type the first line it reformats it and puts in the same line as the if statement. If I then try to reformat this as an if block it just keeps redoing it.
Is there a setting someplace that stops this behavior? Ideally it would allow me to use single lines when I want to but not automatically do it as I type.
Beta Was this translation helpful? Give feedback.
All reactions