-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension settings should be stored in default location #1149
Comments
For self-managed R sessions, it might not be very convenient to have the files located in the extension folder (e.g. |
I see. Could this be solved in a different way (e.g. creating a symlink if someone wants a self-managed session)? The relevant code snippet could be updated as follows: configdir = list.files(".vscode/extensions", pattern="reditorsupport*")
if (interactive() && Sys.getenv("RSTUDIO") == "") {
source(file.path(Sys.getenv(if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"), configdir, "init.R"))
} |
I think VSCode Server has a different directory name ( |
My reasons are (1) it's easier to find the settings folder when it's in the standard location, and (2) I don't like applications cluttering my home directory (I know it's a hidden folder, but still). Of course these reasons might not be enough to warrant the change. |
See also #495 |
Yes, #495 is very much related! Instead of |
|
Folder Should this folder be abandoned, do not hard-code |
This issue is stale because it has been open for 365 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
A backwards compatible change would be to use the XDG locations if they exist (ie, use Regarding @benz0li's comment, it is worthy to note that the linked spec explicitly mentions and links to the XDG specification and the Glib conventions, here in the GNOME documentation which also use the XDG spec. Somewhat related, the wakatime-cli family of extensions are trying to migrate, too. Issue on the main project, the jetbrains extension and the vim extension Off-topic, but I do not see the value of auto-closing issues. That's like automically tagging it |
I also find this quite annoying and would love for XDG conventions to be respected. Ideally an environment variable would specify the path, followed by XDG conventions, followed by ~/.vscode-R. This would let those of use who manage our dotfiles carefully set the location explicitly. |
Describe the bug
Extension settings are usually located in
~/.vscode/extensions
. However, the settings for this extension are stored in~/.vscode-R
.To Reproduce
Here's an example of my setup, all extensions store their settings under
.vscode
:This does not include
vscode-R
, which has its own folder in my home:I could try to fix this if people agree this is a bug.
Expected behavior
I expected the settings of
vscode-R
to be in the standard location under~/.vscode/extensions
.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: