pnpm install
pnpm build:app
pnpm watch
pnpm build:app
builds the front-end app (i.e. the H5P viewer) with Vite.pnpm watch
compiles the extension code withtsc
in watch mode.
Once watch mode is running, press F5 to run the extension in debug mode in a new VS Code window. If this doesn't work, check that the JavaScript Debugger extension is enabled.
Whenever you change the code of the front-end app, run pnpm build:app
again in
a separate terminal, wait for Vite to finish building the app, and reload the VS
Code window where the extension is running with Ctrl+R.