michalczaplinski / interactivity-vscode

Experimental VSCode extension that provides PHP autocompletion for the Interactivity API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ⚠️

Screen.Recording.2023-05-10.at.15.50.16.mov

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

About

Experimental VSCode extension that provides PHP autocompletion for the Interactivity API


Languages

Language:TypeScript 66.0%Language:JavaScript 22.8%Language:PHP 8.6%Language:CSS 2.5%