Developer's Guide¶
This guide covers the development setup for the Zephyr IDE VS Code extension.
Related Documentation¶
For more developer documentation, please visit the GitHub repository.
Prerequisites¶
- Git (https://git-scm.com/)
- Node.js (https://nodejs.org/)
- Visual Studio Code (https://code.visualstudio.com/)
Getting Started¶
1. Clone git repository¶
- Clone this git repository in the current directory of your choice using:
2. Install package dependencies¶
-
Change directories to the
zephyr-idedirectory cloned in Step 1: -
Install all the required packages locally to
zephyr-ide/node_modulesusing: -
(Optional) Install all the required packages globally using:
This eliminates the need to reinstall packages after agit cleanof this directory, or any futuregit cloneof this repository.
It is recommended that you run npm install [-g] again after switching git checkouts, as the required packages may have changed between revisions.
3. Open the Extension in VS Code¶
- Run Visual Studio Code, and close any existing workspaces.
- Select 'File'->'Add Folder to Workspace...' from the top menu bar
- Browse and select to the
zephyr-idedirectory that was cloned in Step 1.
4. Run and Debug in VS Code¶
- Use the Explorer view to open the source file
zephyr-ide/src/extension.ts - Run the extension and start debugging:
- Select 'Run'->'Start Debugging (F5)' from the top menu bar, or
- Use the Run and Debug view, and click the green 'Start Debugging (F5)' button next to the configuration 'Run Extension (zephyr-ide)'
- A separate VS Code instance will launch to allow you to start debugging the Zephyr IDE extension.
Publishing¶
Prepublishing¶
vsce publish --pre-release patch
Publish¶
vsce publish patch