-
Notifications
You must be signed in to change notification settings - Fork 36.6k
Description
VSCode Version: 1.11.2
I have the vshaxe extension cloned into .vscode/extensions/vshaxe, which is the usual workflow for working on extensions as far as I can tell. I didn't have the most recent commit pulled yet, so the version in my local package.json was behind the officially relased one. This leads to VSCode actually asking me to update the extension (which doesn't make a lot of sense for an extension installed from source):
When you do this, VSCode installs the extension as it usually would, into a nadako.vshaxe-1.5.1 folder, which then actually overrides the development installation of the extension on the next restart. This alone wouldn't be a huge issue, but I had "extensions.autoUpdate": true in my settings, so this happened without me realizing it.
It seems that there's an assumption here somewhere that a development installation of an extension will always have a version that's >= the version of the latest release. However, there are a number of reasons why this might not be the case:
- As an extension developer, you might not have pulled the most recent commit(s) yet.
- As an extension developler, you might want to check out out older commits to
git bisectsomething. - As an extension user, you might want to install an extension from source to be able to roll back to an earlier version of it because the most recent version broke something (I don't think there's currently another way to install older versions of extensions? Related: Feature Request - Add GUI for installation of previous extension versions #25142).
