-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
How to know user wide code installation running or System wide installation #66029
Comments
There isn't any way of knowing since it is an installation-time feature. Can I ask: what is the goal you are trying to achieve? |
Settings sync needs to know in order to setup and get I can read the code binary location at Or atleast some identifier on which I can setup Settings Sync on read / write user level by hard code as currently in Settings Sync I have hard coded paths for System Level, Portable, OSS and Non OSS based on Operating Systems due to unavailability of such things. Currently I'm reading the user https://github.com/shanalikhan/code-settings-sync/blob/master/src/environmentPath.ts#L110 |
You shouldn't need to know about user/system at all. What you need are the paths to two directories: @jrieken What do you think about exposing them via API? @sandy081 Any objections? |
Similar issue opened that also focused on Settings Sync years ago. This issue needs to be solved on priority because whenever User Based Installation becomes default way of installing Code, Settings Sync wont work. |
Is it safe/ok to assume the parent of the extension dir as |
@sandy081 Not in extension development scenarios. |
@joaomoreno whats the update, when you do think it will be fixed ? |
@shanalikhan Notice this is a feature request, not a bug. @jrieken What do you think about #66029 (comment)? |
I think it's dangerous - we don't really want extensions to copy binaries from the extensions folder, right? |
@jrieken They are already doing it, unfortunately. But the way they get there is through path magic. |
Settings Sync unable to work with code OSS versions due to this reason that Please discuss this ticket in your upcoming sprint/release planning sessions. |
There's already a function to detect if https://github.com/Microsoft/vscode/blob/master/src/bootstrap.js#L239 |
Is there any way to check if the code is running a user wide or system wide mode via API.
The text was updated successfully, but these errors were encountered: