-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
JSON-formatted cli extension info (details + enabled/disabled) #72970
Comments
@jsejcksn What is the usecase and why you need this? |
Hi @sandy081: I am not aware of another way to get a list of all installed extensions with information about which ones are enabled and which ones are disabled. This export would be a first step in being able to store the information so that the current extension state can be replicated in another instance of VS Code. |
So you are trying to sync extensions? There is an extension already in market place that does it already - https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync Have you tried this? |
Yes, I have tried that extension previously, but it introduces dependencies which don't need to be present for this functionality:
Using that extension also makes the user's settings public by syncing them to a GitHub gist. GitHub gists cannot be made private, only "secret" (security through obscurity). |
I do not think we have plans/cycles to implement this request unless it is highly requested. So I would close this as out of scope and revisit this if more users request for the same. On the other hand, We have a feature request to support synchronisation of settings across machines. Synchronising extensions will also be supported while implementing that. #2743 |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
@sandy081 How can I get a list of enabled extensions vs disabled extensions in VS Code? |
See #19083, #37620, #69090
Currently, I know of two ways to get extension information:
One way, in a shell:
which produces the an extension
id
(and, optionally, version) followed by a newline character for each installed extension:And the other way, in VS Code:
which produces this output in the clipboard:
I would like the ability to output extension information in JSON format when using the cli argument
--list-extensions
. This option could be implemented with an additional argument such as--json
and used like the--show-versions
argument:I propose that the output would be a JSON-formatted array of objects representing each installed extension containing the information provided via the "Copy Extension Information" command, and additionally providing a boolean attribute for whether the extension is enabled. It would look like this:
This would allow programmatic retrieval of extension information and status.
The text was updated successfully, but these errors were encountered: