The HAI VS Code Plugin enhances the capabilities of the HAI Code Generator by providing a user-friendly UI for seamless task execution. This plugin Leveraging Specif AI to load and execute tasks efficiently, offering a streamlined development experience directly within VS Code.
- Node.js == 20.18.1
- npm package manager
- HAI Code Generator binary file
- VS Code installed
npm installCreate a directory cli in the plugin project root and move the HAI Code Generator binary (dist/cli-<version>-<platform> from the HAI Code Generator) into it:
mkdir cli
mv ../code-generator/dist/cli-* ./cli/Ensure that the plugin folder is opened in a separate VS Code window.
Press fn + F5 in VS Code to launch the plugin in a new Extension Development Host window.
💡 Tip: Use this environment for testing and debugging the plugin during development.
To get the VSIX build, run npm run build
Ensure the following extensions are installed in VS Code for local testing:
dbaeumer.vscode-eslint- Ensures code quality with ESLint.connor4312.esbuild-problem-matchers- Handles build issues with ESBuild.ms-vscode.extension-test-runner- Facilitates running tests for the plugin.
Install these extensions from the VS Code Extensions Marketplace if not already present.
-
Issue: Plugin fails to load tasks from Specif AI.
- Solution: Verify that the tasks have been generated correctly.
-
Issue: Development host does not launch.
- Solution: Verify all required dependencies and extensions are installed.
For additional help, reach out to the project maintainers or check the documentation in the repository.