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

Do not update disabled extensions #76879

Closed
supernes opened this issue Jul 8, 2019 · 12 comments · Fixed by #113155
Closed

Do not update disabled extensions #76879

supernes opened this issue Jul 8, 2019 · 12 comments · Fixed by #113155
Assignees
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities insiders-released Patch has been released in VS Code Insiders on-testplan
Milestone

Comments

@supernes
Copy link

supernes commented Jul 8, 2019

Today I noticed that VSCode updates and installs extensions even if they are disabled. In fact, I was reminded of a couple of extensions I no longer use by the hundreds of megabytes downloaded in the background.

Could you consider adding this as a toggle in settings or disabling this behavior altogether?

@vscodebot vscodebot bot added the extensions Issues concerning extensions label Jul 8, 2019
@sandy081 sandy081 added the feature-request Request for new features or functionality label Jul 9, 2019
@sandy081 sandy081 added this to the July 2019 milestone Jul 9, 2019
@sandy081 sandy081 removed the feature-request Request for new features or functionality label Jul 9, 2019
@sandy081
Copy link
Member

sandy081 commented Jul 9, 2019

I see your point. But what is the reason behind having such extension installed and disabled, instead of uninstalling it?

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Jul 9, 2019
@sandy081 sandy081 removed this from the July 2019 milestone Jul 9, 2019
@supernes
Copy link
Author

supernes commented Jul 9, 2019

So that they don't update in the background and waste traffic on my metered connection ;)

I switch between a lot of languages and runtimes regularly. I use VSCode for C++, C#, F#, PHP, Python, JS/Flow, Processing, GLSL/HLSL, Arduino and others, but I like to keep a "working set" of supporting extensions, depending on the project I'm working on.

This comes down to the question "what does disabling extensions actually do", besides declutter the list? Initially I thought this would help with memory usage and startup time, but I don't believe that's really the case.

If there's no practical use for disabling, maybe that option should be deprecated in favor of just uninstalling them.

@sandy081
Copy link
Member

sandy081 commented Jul 9, 2019

Yes, Disabling helps you in creating a working set. But I see your point and agreed that not auto updating a disabled extension makes sense.

@sandy081 sandy081 added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Jul 9, 2019
@sandy081 sandy081 added this to the July 2019 milestone Jul 9, 2019
@sandy081 sandy081 modified the milestones: July 2019, August 2019 Jul 29, 2019
@ffes
Copy link

ffes commented Aug 1, 2019

This comes down to the question "what does disabling extensions actually do", besides declutter the list?

Know that disabled extension can also still popup a notification as well.

I'm sure the C++ extension (ms-vscode.cpptools) occasionally (not sure when exactly) asks you to enter a survey even when the extension is disabled.

@sandy081
Copy link
Member

sandy081 commented Aug 1, 2019

@ffes This should not happen. Please file a separate issue with steps to repro.

@sandy081 sandy081 modified the milestones: August 2019, Backlog Aug 26, 2019
@sandy081 sandy081 added the help wanted Issues identified as good community contribution opportunities label Apr 6, 2020
@lszomoru
Copy link
Member

@sandy081, I will take a look at this one and follow up with a pull request.

@plainerman
Copy link
Contributor

plainerman commented Dec 12, 2020

@lszomoru, I was wondering about the current status of this issue?

If this issue still persists, I would love to contribute and try to resolve it. If this is the case, I would highly appreciate a code pointer to the update procedure, as I am fairly new to this project.

@lszomoru
Copy link
Member

I have not had the chance to look into this. @sandy081, is this something that we still want to pursue?

@plainerman
Copy link
Contributor

@sandy081 It looks to me like you have already implemented the desired changes a few days ago?

@sandy081
Copy link
Member

This is not yet supported and contribution is very much appreciated. Code pointer: Auto update of extensions happen here

private autoUpdateExtensions(): Promise<any> {

@plainerman
Copy link
Contributor

Thank you @sandy081. I will look into it.
I would say, we just filter out the disabled extensions and do not return them. Do you have something different / more elaborate in mind?

And do you happen to know an easy way to test this function (i.e. forcing an auto-update)?

@plainerman
Copy link
Contributor

I was able to implement this feature and also added a configuration to let users decide on whether disabled extensions should be updated.
The PR can be found at #113155.

@sandy081 sandy081 modified the milestones: Backlog, April 2021 Mar 31, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extensions Issues concerning extensions feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities insiders-released Patch has been released in VS Code Insiders on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants
@supernes @ffes @lszomoru @plainerman @sandy081 and others