This guide explains how to build and run the extension locally for development and debugging.
Before you can build or debug the extension, install the required dependencies:
npm install -g vsce
npm installCompile all packages and the extension with:
npm run compile- Open the repository in VSCode.
- Switch to the Run and Debug panel (
Ctrl+Shift+D/Cmd+Shift+D). - Ensure the extension has been built (see Building above).
- Select the
Client + Server (vscode-plugin)launch configuration from the dropdown. - Press Play (or
F5) to launch a new Extension Development Host window.
The new window runs with only this extension active. You can open any Minecraft Bedrock workspace there to test your changes. If you modify code, rebuild and restart the debug session to pick up the changes.
Note: You may need to restart the debug session after switching workspaces for all features to initialize correctly.