REditorSupport / REditorSupport/vscode-R
Horizontal lines of removed chunks never go away
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Describe the bug
Once you remove a code chunk the horizontal lines delimiting it stay.
Then I remove the # %% line:
Then I remove everything:
Also, can you add an option to completely remove those lines? They are quite invasive, specially the thick one above. Moreover, even when the cursor is not inside a chunk, the last selected one keeps being surrounded by those lines, which is very misleading.
To Reproduce
I think it's clear from the description above.
Can you fix this issue by yourself? (We appreciate the help)
No
(If applicable) Please attach setting.json
"[r]": {"editor.tabSize": 2},
"r.rterm.mac": "/Users/carlos/.venv/bin/radian",
// https://github.com/REditorSupport/vscode-R/issues/809#issuecomment-935947010
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
Environment (please complete the following information):
- OS: macOS Tahoe
- VSCode Version: 1.125.1
- R Version: 4.5.3
- vscode-R version: 2.8.8
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.
Research direction
Reproduce the issue in a VS Code R file by removing a chunk, its # %% line, and then all content. Start by tracing the vscode-R logic that draws chunk boundary and selection lines; verify that decorations disappear when chunks are removed or the cursor leaves them, and that any setting for disabling the lines works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100