REditorSupport / REditorSupport/vscode-R
Reindent Lines commands don't work
Offen
@andycraig arbeitet bereits daran.
Seit 03.11.2020.
bug
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.2k
- Forks
- 139
- Ø Merge
- 2 Std. 46 Min.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.