cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable STM32 VS Code extension auto-updates and revert to a previous version

Sara BEN HADJ YAHYA
ST Employee

Software updates can be tricky. They often bring new features and fixes, but they can also introduce complications, particularly with migrating projects.

Some users like automatic updates, but other users want to remain on a specific version that their project is currently running on.

STM32 VS Code extension users must pay extra attention while migrating projects from v1.0.0 to v2.0.0 or newer. Due to the new solution implemented in v2.0.0, this process is not automatic and requires some manual effort. 

This article explains how to stop auto updates for extensions and revert to an older version if needed.

1. Disable extensions auto-updates in VS Code

To avoid extensions update, change the settings "Extensions: Auto Update" in either VS Code Settings editor (Ctrl+,) or directly from the Extensions tab.

ExtAutoUpdate1.png

ExtAutoUpdate2.png

 

2. Install a previous version of STM32 VS Code extension

In VS Code, users have two options. They can install a new version over the old one, keeping only the latest. Or they can use profiles to keep multiple versions installed.

2.1 Install on the current profile

To install an old version on the current profile:

  • Go to the Extensions tab.

  • Pick the STM32 VS Code extension.

  • Click the gear icon and choose "Install Another Version." A list of versions to select from is then displayed. 

InstallAnotherVersion.png

 

If the version you need isn't listed, get it from the Marketplace and install manually.

  • Go to the VS Code Marketplace from the extension.

OpenMarketplace.png

 

  • Download the version that you need.

DownloadFromMarketplace.png

 

  • Go back to VS Code and click on "Install from VSIX..."

  • Find and choose the downloaded ".vsix" file, then click "Install" to finish.

InstallfromVSIX.png

 

2.2 Keep multiple versions installed

To retain a previous version of the STM32 VS Code extension while installing the latest version, you need to create a new profile by following the steps below:

  • Navigate to the VS Code profiles and create a new profile
  • Assign a name to the profile and complete the process by selecting "Create"

CreateProfile.png

 

  • Proceed to install the latest version of the STM32 VS Code extension after creating the profile

  • Now, you have two profiles; one contains v1.0.0, and the other contains v2.0.0

Profilev1.png

Profilev2.png

 

Related links

  • All STM32 VS Code extension versions are available in VS Code Marketplace.

  • To migrate an STM32 based project to STM32 VS Code extension v2.0.0, check our user guide available under the resources section. The user guide is available after installing the extension.

  • To read more about VS Code profiles, click here.

Version history
Last update:
‎2024-04-15 07:57 AM
Updated by:
Contributors