-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
vscode.extensions Doesn't Update On Installing / Removing / Disabling Extensions without restarting #14444
Comments
@shanalikhan I would like to what is the need to have an extension that is disabled... I am trying to understand the functionality/feature that requires this. Thanks |
When you see my extension the main idea behind is to sync all the user installed extensions and settings file sync across multiple platforms. When user install one extension and save the settings when it opens the code in office it does download the latest extensions and settings. Initially user were able to sync these things manually to server and download then manually, now my aim is to make this process automatic so when user change any settings it upload all the settings file and the extensions to the server and download the settings and extensions when code is opened in other computer or office. For now, the automatic process is working fine with the settings as when the settings change it automatic upload the settings and other data files in the server but for extension i am facing issue when the extension is download it doenst initialte the upload process as that object doenst contains all the extension that were downloaded untul the code is restarted so it would be better to add the downloaded extension in the list of extensions in the code but with a flag that shows its not enabled yet waiting for restart so i can save the settings. Hope you know all the process now :) |
Why do you need to sync the settings for a newly installed extension given that extension is not enabled or running. Settings of such extensions are not available they are active. It means user cannot modify settings of them. So, I am thinking what is the use case of Syncing such settings which are not active and not modified? |
i think Installing the extension should be seperate from the scenario of enabled or not. Also when user installs the extension on next restart the it will be enabled already so why not updating the object even on installing with a flag its disabled or enable ,as its already updating on restarting. This is for my scenario for now, if it adds in the object many other doors to code for other extension would open |
@shanalikhan Sorry, I still do not understand that what is the issue / what functionality is missing when you get the settings after restart? Is it that you are trying to sync / export installed extensions information ? I think it is not a good idea just to open the doors for everybody without a proper use case. |
Anything can be applied by some extension A that has funtionality when user downloads any extension B , A should performed some task.
Yes, instantly on when the extension is downloaded. |
So your issue is that if user installs an extension and does some export / sync using your extension (without restart), you do not have information about the installed extension and same with uninstalled extension ? |
@alexandrudima Here is a scenario where extension writers need more extension info (enabled / disabled) to export user preferences like installed extensions and others |
I think the underlying desire here (and @shanalikhan correct me if I'm wrong) is to synchronize Visual Studio Code's state across machines. If that is the case, then there are a lot more (some even more basic) things to consider:
Regarding the disabled extensions, I think the problem is that @shanalikhan 's code might think that the extension got uninstalled meanwhile it is only temporarily disabled. We can think about listing disabled extensions in @shanalikhan Am I close to understanding your scenario? |
Yes, Thanks There is already another issue opened for API support for Themes and file icons: and Disabling Extensions with API : May be one single feature can cover then all in upcoming build so Code Settings Sync extension will start working with its full features |
There are above 150 votes for this feature. |
@shanalikhan Looks like the most wanting feature. Will bring it up during our next milestone plan. Thanks. |
Now that it has been decided this is going to be added to the milestone plan....can the prompt in VS Code when we update this extension be removed? |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I have recently converted Settings Sync extension installation to CLI Based.
This issue has been opened since 2 years |
@shanalikhan Sorry about it and it is still the same status about it. Since it's been some time and things would have changed and it seems this issue got distracted with multiple other requests, can you please consolidate your requests? |
Yes, can you please explain what do you mean. My issue is the first post, and this comment is what i need #14444 (comment) |
What I meant is to validate your features list and consolidate them in the description. It will be easy to get lost if not in description. |
alright, it would be great if you can raise this issue in your next meetings with the teams and let us know about the updates when would be possible to implement this. |
Are there any news on this? |
More than two years after opening this issue, a minimum of at least 1000 user want this feature and all we do is waiting? Is there anything we can do to speed things up? It's a bit annoying how useful extensions trying to help automate things are blocked by such a minimal extension API.. |
https://code.visualstudio.com/updates/v1_31#_no-reload-on-install There's definitely work happening on this. |
@shanalikhan With 1.31 release we expose But an extension is added or removed only if it supports no reload. Let me know if this is good enough, if not, please update the additional requirements on top of it? |
Hi @sandy081, What I understand is needed is an API that exposes all the installed extensions and enablement state per workspace, that also differentiates between built-in and external ones. This is specially true when one works with different projects involving different technology stacks -- what makes enabling and disabling extensions per workspace a bless. Right now, every time I set up a new project, I have to spend again a good amount of time to manually replicate the configuration on the other (two) machines. Thanks! |
We support Settings Sync feature inside VS Code as a core feature now - #2743 |
@shanalikhan Hi |
I need to configure my extension code-settings-sync with the feature that when a user installs the extension and doesn't restart the vs code and neither enable the extension, I need to make the sync backup for that extension when installed.
Installation Process : when installed and not restarted.
Expected Behaviour:
vscode.extensions.all
should show the newly installed extension with enabledfalse
flagSo I can get that extension and make a sync.
Current Behaviour
It doesn't appear in
vscode.extensions.all
until I restart the code by clicking the enable button or other way.Uninstall Process: when uninstalled and not restarted.
Expected Behaviour:
vscode.extensions.all
should not show that extension or some flag like removedtrue
So I can get that extension remove from user's list and make a sync excluding that extension.
Current Behaviour
It doesn't remove from
vscode.extensions.all
until i restart the codeThis is the scenario for installing/ uninstalling.
Same goes for disabling and enabling the extension I need to know which extensions are disabled or enabled.
For the details @alexandrudima has explained very well on the comment below: #14444 (comment)
The text was updated successfully, but these errors were encountered: