We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using "editor.formatOnType": true in VSCode pipes with multi-line function calls cause extra indentations to appear.
"editor.formatOnType": true
This example will keep correct indentation on line 4 after pressing Enter
df |> mutate(a = b) |> mutate() |>
However, this example will cause indentation on line 6 to double up:
df |> mutate( a = b ) |> mutate() |>
options(languageserver.formatting_style = function(options) { styler::tidyverse_style( scope = "tokens", strict = TRUE, start_comments_with_one_space = FALSE, indent_by = options$tabSize ) })
The text was updated successfully, but these errors were encountered:
@Darxor Would you like to try remotes::install_github("REditorSupport/languageserver#615") and see if it works for you?
remotes::install_github("REditorSupport/languageserver#615")
Sorry, something went wrong.
Yes, it does seem to work properly for me now. Thanks for the fix!
Successfully merging a pull request may close this issue.
When using
"editor.formatOnType": true
in VSCode pipes with multi-line function calls cause extra indentations to appear.This example will keep correct indentation on line 4 after pressing Enter
However, this example will cause indentation on line 6 to double up:
Here's a config I use for styler inside languageserver:
The text was updated successfully, but these errors were encountered: