Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop a single VS Code extension from auto update?

Some of my vs code extension update every day, and I have a limited amount of internet bandwidth, is it possible to stop a specific extension from the auto update?

Thanks in advance.

like image 251
Mohammed Faragallah Avatar asked Aug 22 '18 11:08

Mohammed Faragallah


People also ask

How do I turn off auto update in VS Code?

If you do not want to get automatic updates, you can set the Update: Mode setting from default to none . To modify the update mode, go to File > Preferences > Settings (macOS: Code > Preferences > Settings), search for update mode and change the setting to none .

How do I disable an extension in VS Code?

If you don't want to permanently remove an extension, you can instead temporarily disable the extension by clicking the gear button at the right of an extension entry. You can disable an extension globally or just for your current Workspace. You will be prompted to reload VS Code after you disable an extension.


2 Answers

Yes, it is possible (and simple):

In the package.json of the extension, you will find a metadata section that look like so:

"__metadata": {
    "id": "0fcefdee-e09c-4b96-9998-f5dc891893dd",
    "publisherId": "1e02cadf-73ee-47be-8772-75da47b7921f",
    "publisherDisplayName": "Robert Plant"
}

Rename the id field, as "OLD id".

Below the OLD id line, add the following line

"id": "00000000-0000-0000-0000-000000000000",

You will end up with:

"__metadata": {
     "OLD id": "0fcefdee-e09c-4b96-9998-f5dc891893dd",
     "id": "00000000-0000-0000-0000-000000000000",
     "publisherId": "1e02cadf-73ee-47be-8772-75da47b7921f",
     "publisherDisplayName": "Robert Plant"
}

You might have to reload the window and/or to disable/reenable the extension.

NB: If you need to do it for more than one extension, you will need to give each one a different id, otherwise, it won't work:

00000000-0000-0000-0000-000000000000
00000000-0000-0000-0000-000000000001
00000000-0000-0000-0000-000000000002
Etc.

That's it!

like image 139
Axel Avatar answered Oct 21 '22 05:10

Axel


So far, there are only settings for controlling all of your extensions. You can use the settings below:

{
  "extensions.autoCheckUpdates": false,
  "extensions.autoUpdate": false
}

Of course, you can always submit a feature request for controlling specific extensions individually.

like image 36
jabacchetta Avatar answered Oct 21 '22 04:10

jabacchetta