REditorSupport / REditorSupport/vscode-R
`rm(list = ls())` on top of files correlates with objects being automatically deleted
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
While working with VScode, I noticed that when working with specific files I keep loosing the objects in my global environment.
The patterns seems that those files start with a remove call (rm(list = ls())), that is before I create my objects.
I do not run source() or anything of the kind, so I am wondering what may actually run this line in the background.
I suspect, but have no proof, nor reprex, that languageserver may be the culprit but I failed to find anything on the topic.
Of course, that could also come from various other VScode extensions and I did not experiment to dissect the issue.
Has anyone else ever encountered this issue?
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 reported behavior in VS Code using an R file beginning with rm(list = ls()), then isolate whether vscode-R, languageserver, or another extension triggers the deletion. No source file or test is named; done means identifying a confirmed cause with a reproducible example and a clear fix location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100