REditorSupport / REditorSupport/vscode-R
Option to open R console in split editor window
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Is your feature request related to a problem? Please describe.
For some time, it's been possible to open up a terminal in VS Code's editor area, by toggling the "terminal.integrated.defaultLocation": "editor" setting. This affects the behaviour of the R console too; the R console will open in the editor area rather than the traditional "view" area.
By default this editor-based terminal opens up in a new (background) editor tab. But it's also possible to open it up in a separate window by invoking the "workbench.action.createTerminalEditorSide" action ("Terminal: Create New Terminal in Editor Area to the Side" in the command palette).
Unfortunately, I cannot see a way to control/automate this open-to-the-side behaviour for the R console specifically. It always seems to open in a new tab, even if I have an existing terminal opened to the side, or have configured my layout in a custom grid.
Of course, I can can drag and drop the spawned R console into a side window once it's running. But I would like to trigger this behaviour automatically.
Describe the solution you'd like
A setting that would open the R console in a separate editor window (to the side, rather than a new tab), provided that "terminal.integrated.defaultLocation": "editor" is enabled.
Describe alternatives you've considered
Provided that you keep the default "terminal.integrated.defaultLocation": "view" setting, it's easy to enact this "open to the right" behaviour through the "workbench.panel.defaultLocation": "right" setting. But again, this requires your terminal to be running in the "view" area, rather than the "editor" area. And this, in turn, limits the layout configuration that you can impose inside VS code. (Here's one example of many SO questions to this effect.)
Additional context
https://github.com/REditorSupport/vscode-R/issues/682 is loosely related (although I feel this editor-anchored console is much more reliable now)
As always, thanks for an incredibly useful extension!
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
Start by tracing how the R console is created when "terminal.integrated.defaultLocation": "editor" is enabled, and compare it with the named "workbench.action.createTerminalEditorSide" action. Done means a setting can reliably open the R console in a separate editor window to the side without requiring manual dragging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100