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

Considering disabled extensions #143

Open
MarkyMarkNo1 opened this issue Nov 14, 2016 · 27 comments
Open

Considering disabled extensions #143

MarkyMarkNo1 opened this issue Nov 14, 2016 · 27 comments

Comments

@MarkyMarkNo1
Copy link

MarkyMarkNo1 commented Nov 14, 2016

Issuehunt badges

Visual Studio Code Version : 1.7.1
Code Sync Settings Version : 2.3.8
Operating System : W10
Occurs On: [Upload / Download]
Proxy Enabled: No

As of version 1.7, VSCode introduced disabled extensions.

We're excited to find these supported by this beloved plugin soon, hopefully! ;) Thank you!


IssueHunt Summary

Backers (Total: $120.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@MartinSGill
Copy link

Added some thoughts @ microsoft/vscode#15466 (comment)

@jiming
Copy link

jiming commented May 11, 2017

I installed a lot of extentions. And some of them are not used in my daily working. Therefore to make vs code work fast, I disabled them. When I needed them I will enable them temporarily, and disable them afterwards.

I noticed that disable extension are not synced. I hope I can sync those disabled extension as well, since they are useful as well.

Thanks a lot!

Jiming

@shanalikhan
Copy link
Owner

to make vs code work fast, I disabled them. When I needed them I will enable them temporarily, and disable them afterwards.

As for now, its the limitation from code itself, in the issue referenced.
But in upcoming versions, im going to introduce the the hot switch dev environment options, you can have multiple gist but can switch to any other gist and that extensions will be installed

#308

@Fred-Vatin
Copy link

code --list-extensions command will show all your extensions, included the disabled ones.

@ghost
Copy link

ghost commented Aug 4, 2017

@shanalikhan Can I use the settings to choose to upload disabled or enabled plugins?

@mastrauckas
Copy link

mastrauckas commented Oct 8, 2017

@shanalikhan Just wondering, do you just ignore disabled extensions or does code api just not tell you about disabled extensions?

@zihe-xu
Copy link

zihe-xu commented Oct 19, 2017

Now there is no way to achieve this function ?

@mditrolio
Copy link

@mastrauckas It sounds like the latter.

@shanalikhan
Copy link
Owner

shanalikhan commented Dec 13, 2017

No, Code API dont provide information regarding extension either its disabled / enabled.
Getting information is not useful by getting by any mean (CLI) unless Settings sync disable extension automatically after downloading in other code machines which currently not supported by code

image
https://code.visualstudio.com/docs/editor/extension-gallery#_command-line-extension-management

This issue is pending from :

  1. How to enable / disable extension from CLI microsoft/vscode#55363
  2. How to enable / disable extension from API or commands microsoft/vscode#15466

@mastrauckas
Copy link

@shanalikhan Why not sync extension that are enabled and disabled ? I much rather have my extensions synced and have to disable manually on the other machine than lose them completely.

@lhnrd
Copy link

lhnrd commented May 26, 2018

Really interested in seeing this feature. @shanalikhan can you elabore more on the code limitation?

Is it possible to list and install everything (even the disabled ones)? I'd really prefer this then maybe losing some extensions.

@daltonhildreth
Copy link

daltonhildreth commented Jun 25, 2018

If you can get the full list via code --list-extensions and the the list of enabled extensions through extensions.json or the API, can't you just subtract the latter set from the former set to get the disabled list? Then you can selectively disable the correct extensions. This could be a workaround until the API is nicer. (Ideally an issue on that could be opened on the code repo.)

A simpler approach would be to just get the full list (via --list-extensions), disable all of them, and then selectively enable them based on what you get from the API or extensions.json.

@jcostello
Copy link

Any plan for releasing something to address this?

@shanalikhan
Copy link
Owner

shanalikhan commented Nov 13, 2018

As there is no official support, the only way seems is the approach mentioned by @fiblit

There are no exact release plan for this issue but I'm open for PR though, feel free to send. I will release new version with it.

@GammaGames
Copy link

I would appreciate it not uninstalling disabled extensions, I normally have some extensions disabled on my work machine but now I have to leave them enabled so I don't lose them at home.

@aniforprez
Copy link

+1 on it at least not uninstalling disabled extensions. It's a real chore managing extensions between multiple machines right now. Eg. I only do Python work on my work laptop, I only do JS on my personal laptop. I'd like to disable JS extensions on my work and Python extensions on my personal laptop. Right now everything being enabled makes startup that much slower

@IssueHuntBot
Copy link

@IssueHunt has funded $120.00 to this issue.


@shanalikhan
Copy link
Owner

microsoft/vscode#15466
Please upvote and comment over there. Using API instead of CLI is more feasible.

Settings Sync use API to install/uninstall all the extensions from the v3.3.0

@MCFreddie777
Copy link

Yeah, I also code both angular and react. I usually have disabled extensions of either one and enable only for workspace... This extension did not sync my disabled extensions

@kid1412621
Copy link

REALLY need this, I use vue and java, they're different env set. Every time switching is painful.

@benkoska
Copy link

benkoska commented Sep 8, 2019

I can do this. Please assign me

@shanalikhan
Copy link
Owner

We need the API from code itself to allow Settings Sync to enable / disable extensions.

cc : @sandy081

@daltonhildreth
Copy link

@shanalikhan, is there something that's changed since I suggested two feasible approaches/workarounds that would make them unfeasible to do? To my understanding having the API from code is not needed, even if it is preferable.

@sandy081
Copy link

sandy081 commented Sep 9, 2019

@shanalikhan This requires exposing the internals which can be flux.

Hence as mentioned in this issue - microsoft/vscode#78966, we are planning to expose an API to an extension to register its backend data store and through which VS Code will synchronise user data.

@shanalikhan
Copy link
Owner

To my understanding having the API from code is not needed, even if it is preferable.

@fiblit Yes i can understand, but as per discussion with @sandy081 on microsoft/vscode#78966 and microsoft/vscode#78869 the official support is already planned and on its way that will help Settings Sync to get such information. I suggest to wait rather then using custom CLI approaches.

@rstriquer
Copy link

Reporting only to register (as it may be interesting to know more scenarios and how this function is important to some)!

Visual Studio Code Version : 1.45.1
Code Sync Settings Version : 3.4.3
Operating System : ubuntu 18.04.4
Occurs On: [Upload / Download]
Proxy Enabled: No
PS: I have another instalation on a win10 machine.

I program in several languages, Java, C++, Python, PHP, bash. I set up a good environment for PHP, when I started a job in Java I set up the environment and disabled the plugins in the worksplace. It was alright till I found PHP environment in a workspace missed some plugins afther the sync. It took me a day or so to understand what was up. Therefore I ask, please, add workspace disabled plugins to the sync.

If you need some help investigating or whatever you can call me, I'll do my best to help.

@fredrikaverpil
Copy link

It seems that when I enable extensions in WSL2, they get disabled locally automatically. This means any extension which is enabled in WSL2 won't sync over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests