REditorSupport / REditorSupport/vscode-R
Reindent Lines commands don't work
Open
@andycraig is already working on this.
Since Nov 3, 2020.
bug
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Describe the bug
Commands Reindent Lines, Reindent Selected Lines do nothing.
To Reproduce
- Create a file
temp.Rwith the following content:for(i in 1:2) { print(i) } - Use command
Reindent Lines; nothing happens - Select all lines
- Use command
Reindent Selected Lines; nothing happens
Contrast with JavaScript:
- Create a file
temp.jswith the following content:for (let index = 0; index < array.length; index++) { const element = array[index]; } - Use command
Reindent Lines; middle line is indented as expected
EDIT: For Javascript, it also works if only lines 2-3 are selected and the Reindent Selected Lines command is used.
Notes
Not sure if this is a vscode-R bug or a VS Code bug, as there seem to be quite a few VS Code issues related to reindenting, e.g., https://github.com/microsoft/vscode/issues/19847
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.