Skip to content

Zephyr Lab Revert Workspace

Derek Snell edited this page May 1, 2024 · 3 revisions

Introduction

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.

1. Revert lab workspace

  1. Close all open tabs in the Editor. Right-Click on a tab, and select Close All.

  1. 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 select Project > Delete Project from Disk. Confirm the deletion of the project.

    Delete Project from Disk

    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.

  1. Click the Source Control view (Ctrl+Shift+G). Under Source Control -> Modified ->, this View will show the modified zephyrproject repo. Right-click on this repo, and select Add Folder to Workspace. VS Code will need some time to refresh the View.

    Add folder to Source Control


  1. The Zephyr repo is now added under Source Control. Under the Zephyr repo, Right-Click on Changes, and select Discard All Changes.

    Discard all repo changes


  1. Click the button Discard All Files.

    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

Clone this wiki locally