-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Download latest compatible extensions prior to VS Code update #125417
Comments
The scenario I usually run into looks like this:
Here are examples of times that this has happened to Jupyter extension users.
|
@joyceerhl should this already be addressed by #121749? |
Whoa, I was always under the impression this was already happening, sounds like VS Code looks for updates after it has been updated and loaded. Yes please, this sounds like a very good feature. |
Does it cause the old version of VS Code to load newly unzipped extensions - for eg., if open a new window without restarting VS Code? How about not enabling the extension if it is not compatible? |
Good point, we can't unzip them until VS Code restarts (instead of window reloads). If we have hooks for that, we can unzip when VS Code shuts down.
The problem with this approach is it's the same experience as enabling incompatible extensions, for notebooks or custom editors. When reloading a window which has notebooks open, the extensions need to be activated successfully otherwise users won't see the notebook editor loaded correctly. Also still users would have no idea what to do if the extensions are disabled. |
To reduce the download time and prevent the extensions download/unzip slowing down the restart/reload
|
Actually we can prevent this from happening, if VS Code always loads the compatible extension folder, other than finding the one with greatest version. |
I want to also call out that something like this is incredibly important for Language Packs which use the engine version to snap to the translations provided. We want to give the users a translated experience upon upgrading VS Code and we can't do that if we don't update the language pack until after upgrading VS Code. |
Yeah that will be useful.
CCing @joaomoreno for any insights on update hooks |
@sandy081 The update service fires events: https://github.com/microsoft/vscode/blob/bae654ad1d8c0baaa67e1400a694e91893347fa4/src/vs/platform/update/common/update.ts/#L86 A bunch of update states have information about the upcoming update, including the product version that's about to be installed. Note that this can always be ahead, the same or even behind (when we roll back). Also note that users can also cancel updates midway, so that's another problem you're gonna have. |
The cost of this is we download extensions which users might not need, which is bad but does not break the product. |
…crosoft#206924) microsoft#125417 update extensions compatible with newly available VS Code version
Issue Type: Feature Request
Extensions using latest API (or new APIs in coming Stable releases), they are now suffering from some "down time" as the upgrade of VS Code and extensions don't happen at the same time. Though we can't improve every indivual scenario, but we can improve this case:
Often that users find the extension stop working, for example, they can't open Jupyter notebook anymore even though a compatible version of the Jupyter extension is already available.
Suggestion:
VS Code version: Code - Insiders 1.57.0-insider (20df877, 2021-06-03T06:38:36.085Z)
OS version: Windows_NT x64 10.0.19041
The text was updated successfully, but these errors were encountered: