Skip to content
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 either Code is running as portable mode via code api or env. variable #54824

Closed
shanalikhan opened this issue Jul 22, 2018 · 3 comments
Assignees
Labels
api feature-request Request for new features or functionality

Comments

@shanalikhan
Copy link

shanalikhan commented Jul 22, 2018

I know to get the code exe path via api
I need to know the following things:

  1. Any flag or identifier that shows code is running as portable Mode
  2. The data files folder and extensions folder either by process variable or API
@shanalikhan shanalikhan changed the title Get portable mode via va code api Get portable mode paths via code api Jul 22, 2018
@jrieken
Copy link
Member

jrieken commented Jul 24, 2018

The data files folder and extensions folder either by process variable or API

that is #2741

Any flag or identifier that shows code is running as portable Mode

Why would an extension need to know? I wouldn't like extensions doing thing different just because VS Code comes as portable mode

@jrieken jrieken added info-needed Issue requires more information from poster api labels Jul 24, 2018
@shanalikhan
Copy link
Author

Settings Sync needs to know either the code is running as portable mode. If its running as portable mode extension needs to look for the user specified folders ( #2741 )

@jrieken jrieken added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Jul 24, 2018
@shanalikhan shanalikhan changed the title Get portable mode paths via code api How to know either Code is running as portable mode via code api or env. variable Jul 27, 2018
@joaomoreno
Copy link
Member

Actually, you need the user data and extensions directory paths, not the notion of whether Code is portable or otherwise. Similar to #54345 (comment)

Closing it given that #2741 is the right way to go.

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants