This guide explains how to set up, run, and test the FlutterFlow Custom Code Editor VS Code extension.
- Node.js and npm installed
- VS Code
- Dart and Flutter VS Code extensions installed
- Reccomended: FVM installed
- Clone the repository
- Install dependencies:
npm installThe most straightforward way to debug the extension is to run it in VS Code. It's recommended to uninstall this extension from VSCode before running it in this mode.
- Open the project in VS Code
- Press F5 to start debugging
- This will launch a new VS Code Extension Development Host
- You can set breakpoints and debug the extension
To build the extension for release:
vsce packageThis will:
- Check TypeScript types
- Run ESLint
- Build the extension using esbuild
- Package the extension using vsce generating a .vsix file
To run all tests:
npm testThis will:
- Compile the test files
- Compile the extension
- Run ESLint
- Execute the tests
The project includes:
- Unit tests (
src/test/unit/) - End-to-end tests (
src/test/e2e/)