vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Visual Studio Code should update itself silently

Open kasajian opened this issue 10 years ago • 52 comments

I think automatic update is great, but I think some people just want the thing updated automatically without being asked. There can be notification that indicates that it's changed and what's new. But I think we should follow the Chrome model and just update it.

Why?

Think of it as software running on the web. When I go to cnn.com, I'm not notified that there's a new version of the back-end software that I might be running. So why / when should I care if the front-end software has updated?

Sometimes you care -- such as low-bandwidth situations. But that doesn't mean everyone cares. Some of us, dare I say, a large majority of people, just want the latest stuff all the time.

Thank you for listening.

  • VSCode Version:
  • OS Version:

Steps to Reproduce: 1. 2.

kasajian avatar Jul 20 '16 15:07 kasajian

Problem with automatic, unconfirmed updating is that users might rely on a feature that breaks with the update, they might require a specific extension that doesn't work properly with the update, etc.

In very strict environments, the user might not even have the required privileges for the update process to complete successfully, or he might be required to ask for approval of a superior before upgrading a toolset, etc.

For the insiders release, I would actually welcome it not nagging every day and just updating automatically, for the stable release, not so much since that is the tool I rely on for production usage.

bgse avatar Jul 20 '16 21:07 bgse

Should be a setting so the user can pick whether they want to automatically upgrade

Mike737377 avatar Jul 21 '16 01:07 Mike737377

This is the 'stable channel' version of #7389.

kieferrm avatar Jul 21 '16 18:07 kieferrm

Could be a setting defaulted to false. Can already imagine an avalanche of "high cpu/hdd load on startup // VSC unresponsive // etc" bugreports every update if this feature becomes a default behavior.

Spown avatar Jul 22 '16 09:07 Spown

This is the number 1 thing that bothers me about code specifically on Windows, (so that just speaks to how great code is). I'm not sure if anything is being done here so I feel compelled to add my two cents. This is not just annoying to people on the insider track. The stable updates come frequently enough to annoy the shit out of me over the last year. There is a well-established pattern for how to do this and you should just copy: chrome, github for windows, spotify, slack, curse, or any other of the tons of desktop apps that have frequent updates do it silently and automatically.

Might break functionality: How do I know as a user that the update is going to break my workflow? Until I install it, I don't. Even if I do read the release notes, I might not understand the implications until I use it. By leaving that choice up to the user you shift the blame for things breaking onto them and give them a crappy update experience as a bonus. Instead, if this is a legitimate concern, you should provide an easy way to roll back to the previous known-good version. More work for you, yes, but more satisfaction for end users.

Might cause high load on startup: Don't install the update on startup. No one wants slow startup. There are many ways around this, install in the background, install on shutdown... again copy one of the other apps that does it right.

Make it a setting: If you must. Most users won't know or care about it, unless you turn it off by default, then every user will have to know about it because they will all want to enable it!

Might not have permissions: Code should install into AppData\Local or some other non-restricted location. If that means it doesn't use MSI, so much the better.

CodyBatt avatar Sep 23 '16 01:09 CodyBatt

@CodyBatt You make some good points.

I'm curious, though, did you get an update that broke functionality? If so, please file an issue on that.

There is a setting to disable updates: update.channel: "none".

User installations: #534

joaomoreno avatar Sep 23 '16 07:09 joaomoreno

@joaomoreno No update has ever broken functionality for me (I was just responding to what I think is a weak excuse for the current update behavior). I don't want to disable updates! Like the OP stated, I just want them to occur silently, automatically, without interrupting my workflow.

There is one really good thing about the current behavior, when I have insomnia, I can just think about the update experience in VS code and cry myself to sleep. :)

CodyBatt avatar Sep 23 '16 16:09 CodyBatt

I agree. I am constantly being asked to restart VS Code because of extension updates. And the upgrade of VS Code does not work. When I get annoyed enough of the prompts I download the latest version and reinstall.

UPDATE Note I am running on Mac OS X.

I determined via log file ~/Library/Application\ Support/com.microsoft.VSCode.ShipIt/ShipIt_stderr.log that my problem was permissions.

I had VSCode installed in /Applications and it could not replace that version with the update.

I have moved it into ~/Applications and adjusted my helper script accordingly. I have not seen any more requests for restart where they were coming every 5-10 mins.

Notice that I found a bunch of cruft in a directory named /var/folders/lj/vc5bqkb1107_sxdtx3gnp1yr0000gp/T as well.

klmcwhirter avatar Oct 11 '16 02:10 klmcwhirter

Agreed, this would make vscode more attractive to use frequently, with less tedious updates.

PowerWeb5 avatar Jan 15 '17 05:01 PowerWeb5

I made a simple solution for Debian: https://github.com/ideaconnect/vscode-autoupdate

I have it in cron, automatically updates vscode for my everyday around 11:00

bpacholek avatar Mar 22 '17 13:03 bpacholek

What I want is to be able to press "never annoy me again" whenever I see "an update is available". I don't care unless something breaks, and then I do it on my own. Those update notifications are annoying, and that is the real problem.

krux02 avatar Mar 23 '17 12:03 krux02

One thing that needs to be improved on: When you choose to finally update, VS Code won't reopen with previously open files. It's fine for that type of behaviour if you as the user choose to click on X. Not so much if the intent wasn't to end the session but rather to just update the software. Not sure if that's a separate issue, but a silent update should definitely ensure that all your files remain open.

On topic: one way to solve this is to make the updater work without having to shut down VS Code, and instead offer you the option to restart VS Code to make changes take effect (without nagging about it). This way, the next time you run VS Code even from a cold boot, you'll have the new version running (to avoid 'long startup' grumbles).

Grinderofl avatar Apr 07 '17 07:04 Grinderofl

Please make VSCode act the way chrome does over an update (assuming you've enable tab restoration in chrome).

  • Unobtrusive notification
  • Update is fully behind-the-scenes (no terrible installation wizard)
  • Fast since real update isn't done on e.g. launch path
  • Restores state after done

shuffle2 avatar Jun 16 '17 21:06 shuffle2

My solution for Ubuntu: Activate the repository for it (https://code.visualstudio.com/docs/setup/linux), set the system update to 'automatic' and set in vscode the option "update.channel": "none". Now Ubuntu's apt updates vscode and vscode does not annoy me with update notifications.

joachimwolff avatar Jul 26 '17 09:07 joachimwolff

How can I set update.channel: "none" per machine?

alexhass avatar Aug 26 '17 09:08 alexhass

In Linux it is not a common practice for programs to be self-updating. I wouldn't even want this. My habit of typing apt update && apt upgrade does the job. Even if I don't - there may be a smaller notification than there is currently. For example, look at regular Visual Studio (not vscode) for Windows notification flag about updates. It's small, in the corner and it doesn't get in the way. You can do the update anytime, even manually and make this flag disappear. Another example - compare, let's say, Firefox on Windows and on Linux - on Windows it updates itself, on Linux not, there is a package manager for that.

carl-di-ortus avatar Sep 15 '17 16:09 carl-di-ortus

I don't care if it auto-upgrades, but please allow me to turn off that notification.

alper avatar Sep 21 '17 10:09 alper

@yamlfd File --> Preferences --> Settings The global settings files opens on the left, on the right your personal settings. Just copy&past the update.channel: "none" line to your personal settings.

joachimwolff avatar Sep 21 '17 11:09 joachimwolff

It need to be set per Machine. The software need to be installed per machine and users do not have permission to update the software. Updates are only deployed via AD with .msi files.

alexhass avatar Sep 21 '17 13:09 alexhass

An MSI based installer with a property to enable or disable system level automatic updates would make managing and deploying Code via ConfigMgr much easier. Also, please stop Code from auto launching after a silent install.

ajf8729 avatar Oct 12 '17 00:10 ajf8729