question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simplify vscode-r for new users

See original GitHub issue

Is your feature request related to a problem? Please describe. The transition to vscode-r may be difficult and daunting for new users. For instance, vscode-r has a lot of customisation through the settings menu. However, the depth and breadth of customisation can be daunting to new users. I see @ManuelHentschel has taken steps to improve this with the r.rpath change (great idea by the way), but I think we could do some work to help simplify setup further. I have some ideas for this, but I would like to hear everyone’s thoughts.

Describe the solution you’d like Some ideas I’ve had:

  • Group vscode-r settings by their broad purpose. For instance, rmarkdown settings, workspace viewer settings, and help panel settings could be grouped or sorted together. At present, as these settings are not grouped, they are sandwiched in between setup settings like rterm and rpath. We could group these under something like ‘General’ or ‘Editor’. We could have rterm, rpath, rterm send delay (and other similar settings) grouped under ‘Advanced’.
  • Potentially collapse R LSP Client into vscode-r, and group its settings as per above
  • Potentially enable session watcher by default? I understand that the session watcher is experimental in nature, but it has been some time since its release (nearly a year). I haven’t noticed any bugs with it lately, but that might just be my experience. Given the important abilities of the session watcher, it seems to me that new users would likely want this setting on, even when they don’t know what the session watcher is/does.
  • Potentially simplify the readme/landing page (i.e. https://github.com/Ikuyadeu/vscode-R). At present, it is a lot of information to digest for a new user, and doesn’t explain how to get the extension working. It might be useful, for example, to format the page as:

Requirements Installation Features Settings etc…

… and then have links to wiki pages for more in-depth information. I also think it would be a lot less information-overload if we went without the pictures, but that might just be personal preference.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ManuelHentschelcommented, Dec 15, 2020

That was my concern too. I had a quick look around and didn’t find anything on it, so I suspect you’re right. I guess we could have a hacky conversion function to correct the old settings? E.g. r.workspaceViewer.bla -> r.editor.workspaceViewer.bla

Edit: carrying on with the above, we could have a message box pop up if it detects old settings, and asks if the user wants to convert to the new settings

I implemented a message box like this in the debugger when moving the settings of the debugger:

https://github.com/ManuelHentschel/VSCode-R-Debugger/blob/38490254e0f5281e61fa9dac03bfc7206f9f38bc/src/extension.ts#L25:L29

I wouldn’t try to update the settings automatically though, since vscode uses a combination of settings from different places (global user settings, workspace settings, language-specific settings, …) which would be quite difficult to handle properly.

0reactions
eitsupicommented, Mar 14, 2021

FYI

I think VScode Remote-Containers is very useful for trying out a new language because it absorbs the differences between OS by using Docker and automates the vscode setup. So I have changed the R container definition files which are able to added by Remote-Containers extention(https://github.com/microsoft/vscode-dev-containers/pull/732). スクリーンショット 2021-03-06 135607

The R container definition files had not been updated for about 2 years though, I hope to update it appropriately and I hope that it will be an option for new users to try vscode-R in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure DevOps Simplify - Visual Studio Marketplace
Extension for Visual Studio Code - An Extension to make working with Azure ... The extension gives you a new view which shows...
Read more >
July 2022 (version 1.70) - Visual Studio Code
Learn what is new in the Visual Studio Code July 2022 Release (1.70) ... Update 1.70.3: This update is only available for Windows...
Read more >
March 2022 (version 1.66) - Visual Studio Code
Learn what is new in the Visual Studio Code March 2022 Release (1.66) ... Users can now type @lang:languageId in the Settings editor...
Read more >
November 2022 (version 1.74) - Visual Studio Code
Learn what is new in the Visual Studio Code November 2022 Release (1.74) ... Hide Activity bar and Panel badges - Simplify the...
Read more >
Debugging in Visual Studio Code
To add a new configuration to an existing launch.json , use one of the following ... By selecting the debug status, a user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found