interactivity-vscode

Experimental VSCode extension that provides PHP autocompletion for the Interactivity API

Stars
7

VSCode Interactivity

A VSCode extension that provides autocompletion for the Interactivity API.

Highly experimental and unstable. Do not use for anything other than tinkering or further development

https://github.com/michalczaplinski/interactivity-vscode/assets/5417266/3fe10446-3273-4165-b007-bf39d631b86f

Current Limitations

  • The extension only works for blocks where the interactivity is defined in a
    separate store.js file and exported using export 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.

Development

Run and debug the extension in development:

npm run watch

And then you can run the "Run Extension" VSCode debug task to run the extension in debug mode.

Build the extension for production:

npm run build
npx vsce package