REditorSupport / REditorSupport/vscode-R
Reindent Lines commands don't work
Aperta
@andycraig ci sta già lavorando.
Dal 3/11/2020.
bug
- Lingua principale
- TypeScript
- Stelle
- 1.2k
- Fork
- 139
- Merge medio
- 2h 46m
- PR unite (30g)
- 5
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.