languageserver
languageserver copied to clipboard
Autoindent adding unneccesary indent
Describe the bug
If adding pipes onto the end of a command that finishes with a bracket on a newline the autoindent seems to want to add an extra indent.
To Reproduce Steps to reproduce the behavior:

Do you want to fix by self? (We hope your help!)
No
Expected behavior
That it doesn't indent a second time
Environment (please complete the following information):
OS: macOS
VSCode Version: 1.63.2
R Version: 4.1.2
vscode-R version: v2.3.6
@renkun-ken is it an issue of auto formatting on typing?
Yes, it is.
It is caused by how we determine the range of the current expression.