A compatible AI model must be pulled in Ollama (e.g., llama3, codellama, etc.)
Development
Building the Extension
The GhostWriter extension includes a fully automated build script that intelligently determines the appropriate version increment based on your git commit messages:
./build.sh
Smart Version Management:
Automatically analyzes git commit messages to determine version changes
Major version (1.0.0 → 2.0.0): Triggered by commits with "BREAKING CHANGE" or "!:"
Minor version (0.1.0 → 0.2.0): Triggered by commits with "feat:" or "feature:"
Patch version (0.0.1 → 0.0.2): Default for bug fixes, documentation, etc.
Release candidate (0.1.0 → 0.1.0-rc.1): Triggered by commits with "rc" or "release candidate"
Automatic Workflow:
Analyzes your commit history since the last tag
Determines the appropriate version increment
Updates package.json with the new version
Compiles and packages the extension
Creates a git tag for the new version
Keeps the current and previous build for reference
The script also manages release candidates, incrementing RC numbers as needed and finalizing them to stable versions when appropriate.
Installation
From VS Code Marketplace (Coming Soon)
Search for "GhostWriter" in the VS Code marketplace and click install.
From Source
Clone this repository
Run npm install to install dependencies
Run npm run compile to build the extension
Press F5 to launch a new VS Code window with the extension loaded
Publishing
This extension uses GitHub Actions to automatically publish new versions to the VS Code Marketplace when a new release is created.
Prerequisites for Publishing
Create a Personal Access Token (PAT) for the VS Code Marketplace: