Combine rterm/rpath settings for different operating systems?
See original GitHub issueWe have separate settings for R paths on different platforms:
r.rpath.windows
,r.rpath.mac
,r.rpath.linux
r.rterm.windows
,r.rterm.mac
,r.term.linux
But as far as I can tell we don’t handle these differently in the code. We check the user’s OS, then choose the setting for that OS. So I think we could just have r.rpath
and r.rterm
. This would simplify things for the user (fewer settings) and for our code.
The downside to this change would be that a lot of users would already have those settings set. I think settings can be automatically migrated - I believe this was done recently when the vscode-jupyter extension was split out from the vscode-python extension. I could look into how they did it and see whether it seems practical. If the user has multiple of those settings set, we could show a message to ask them to choose which one to retain.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:5 (4 by maintainers)
@andycraig You may also send PR to vscode-r-lsp and VSCode-R-Debugger since they share the same
rterm
andrpath
settings.@renkun-ken Thank you for pointing out the use of the different settings to shared settings across multiple operating systems. I hadn’t thought of that so good to hear that there is/was a use case for them.
@ManuelHentschel Thank you for suggesting that approach. It sounds good to me too. Marking the OS-specific settings as deprecated for a while before removing them would give us a good fallback option, as you mention.
Sounds like we are happy with @ManuelHentschel’s method. I will have a go at implementing it. (If someone else wants to implement it instead, please feel very free to volunteer.)