A VSCode extension that provides autocompletion for the Interactivity API.
Screen.Recording.2023-05-10.at.15.50.16.mov
- The extension only works for blocks where the interactivity is defined in a
separate
store.js
file and exported usingexport default
. Look at the example in/blocks/store/js
. - The
store.js
file has to be on the same level as the PHP file where you want the autocompletion.
npm run watch
And then you can run the "Run Extension" VSCode debug task to run the extension in debug mode.
npm run build
npx vsce package