vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Offer to move VS Code to the Applications folder

Open isidorn opened this issue 1 year ago • 6 comments

macOS

  1. Download VS Code
  2. It is in the Downloads folder
  3. Run it -> all good. No dialog
  4. The issue is that users leave VS Code in the Downloads folder, and then they can not auto-update 🐛 (me and @digitarald saw this happen with GH folk new to VS Code)

I just downloaded ollama, and on first run there was a dialog to offer to move to Applications.

Can we do the same?

Image

isidorn avatar May 30 '24 13:05 isidorn

@deepak1556 isn't there support from Electron to do this? Anything that would speak against using it?

From https://github.com/electron/electron/blob/main/docs/api/app.md

image

bpasero avatar May 30 '24 15:05 bpasero

One thing to keep in mind is that we have lots of scenarios where we would not want such a dialog, for example CI smoke test runs or VS Code bisect runs.

bpasero avatar May 30 '24 15:05 bpasero

@bpasero thanks for smart comments. Yeah, we would need flag to disable, so that CI and bisect runs can circumvent this.

isidorn avatar May 30 '24 16:05 isidorn

isn't there support from Electron to do this? Anything that would speak against using it?

Yup, api was made specifically for this use case https://github.com/electron/electron/issues/1692. I can't think of a reason to not use it.

deepak1556 avatar May 31 '24 04:05 deepak1556

Assigning to myself and August just to not loose track of this.

isidorn avatar Jul 25 '24 11:07 isidorn

The issue is that users leave VS Code in the Downloads folder, and then they can not auto-update

Note that this feature would likely not solve the problem above. Not being able to auto-update is a symptom of having the app in quarantine, which macOS does by default to an app that just got downloaded. We have code to detect this: https://github.com/microsoft/vscode/blob/7cbcafcbcc88298cfdcd0238018fbbba8eb6853e/src/vs/workbench/contrib/update/browser/update.ts#L286

Before we commit to doing this, let's verify whether it helps at all with the initial problem of users being unable to update.

joaomoreno avatar Aug 28 '24 08:08 joaomoreno

Yeah, this would be useful to know. Also if there's any auto-updates, would be nice to see an alert, not just on the first time you install or run it, maybe every time, a 'don't show this again' dialog, or some other mechanism.

salmanmkc avatar Apr 29 '25 15:04 salmanmkc

This is such a funny issue in my org, I'm helping to move to vscode as part of adoption of copilot and so many devs are not moving it to applications and can't update So this will be a great feature to avoid this. Thanks

orenm-gloat avatar May 14 '25 15:05 orenm-gloat

Work provides VS Code (along with a number of other tools) as a portable solution (we don't install it) through an internal dev tool. For the portable solution, it would be good to disable updates since they can't be installed anyway.

mwalker-us avatar May 20 '25 01:05 mwalker-us

Issues around VSCode being read-only that aren't already linked:

  • https://github.com/microsoft/vscode/issues/7426
  • https://github.com/microsoft/vscode/issues/27928
  • https://github.com/microsoft/vscode/issues/118545
  • https://github.com/microsoft/vscode/issues/119210

afeld avatar Oct 29 '25 07:10 afeld