on 2024-04-16 05:00 AM
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.
To avoid extensions update, change the settings "Extensions: Auto Update" in either VS Code Settings editor (Ctrl+,) or directly from the Extensions tab.
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.
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.
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.
Download the version that you need.
Go back to VS Code and click on "Install from VSIX..."
Find and choose the downloaded ".vsix" file, then click "Install" to finish.
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:
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
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.