Clone the repository and run the following command in the root directory to install all dependencies for both the editor and the extension:
pnpm install
3. Compile and Debug
Everything is configured for a reliable debugging experience in VS Code.
Open the vscode-extension folder in VS Code.
Go to the Run and Debug view (you can use the shortcut Cmd+Shift+D on macOS or Ctrl+Shift+D on Windows/Linux).
Select the "Run Extension" launch configuration from the dropdown menu.
Press F5 or click the green play button to start debugging.
This will automatically trigger a pre-launch task that builds the Svelte webview and copies the assets, then launches a new Extension Development Host window with the extension running.
Making a Change and Seeing it
The workflow is simple and reliable:
Make a code change in either the structural-editor or vscode-extension source files.
Stop the debugger if it is running (Shift+F5).
Start a new debugging session by pressing F5. The pre-launch task will automatically rebuild the UI.
If your UI changes are not visible, it is likely due to VS Code's webview cache. To fix this, open the Command Palette (Cmd+Shift+P or Ctrl+Shift+P) in the debugged VS Code window and run the Developer: Reload Window command. This will force the webview to load the new files.