Zephyr Lab Revert Workspace - nxp-mcuxpresso/vscode-for-mcux GitHub Wiki
Following all the lab guides at Training Zephyr Getting Started will make changes to the local Zephyr repo, and the VS Code workspace. This guide provides the steps to revert the repo and workspace to a clean starting point.
- Close all open tabs in the Editor. Right-Click on a tab, and select Close All.
-
Click the MCUXpresso view on the left toolbar. Find any open projects, the example shown here is the
blinky
project. Right-Click on the project, and selectProject > Delete Project from Disk
. Confirm the deletion of the project.Note When working with Repository Application projects like these, where the project folder is left in the local Zephyr repository, MCUXpresso does not delete the source or project files original to the repo. Instead it deletes the generated files the extension adds for VS Code.
If files have been modified in the local repo, VS Code can revert these using the Source Control view.
-
Click the Source Control view (Ctrl+Shift+G). Under
Source Control -> Modified ->
, this View will show the modifiedzephyrproject
repo. Right-click on this repo, and selectAdd Folder to Workspace
. VS Code will need some time to refresh the View.
-
The Zephyr repo is now added under
Source Control
. Under the Zephyr repo, Right-Click onChanges
, and selectDiscard All Changes
.
-
Click the button
Discard All Files
.
Now the workspace has been reset to its starting point.
Lab completed. Return to the Zephyr Labs Overview Training Zephyr Getting Started