VSCode Kanayago

Visual Studio Code extension for Kanayago Language Server Protocol.
Features
- Real-time Ruby syntax checking
- Integration with Kanayago parser
- Lightweight and fast syntax validation
Requirements
- Kanayago gem installed and available in PATH
- Ruby 3.4 or higher
Installation
From VSIX (Manual Installation)
Install Kanayago gem:
gem install kanayago
Install the extension:
- Download the
.vsix file
- In VSCode, press
Ctrl+Shift+P and run Extensions: Install from VSIX...
- Select the downloaded
.vsix file
From Marketplace
Install from the Visual Studio Marketplace or search for "VSCode Kanayago" in the VSCode extensions marketplace.
Configuration
You can configure the extension through VSCode settings:
kanayago.serverPath: Path to the kanayago executable (default: "kanayago")
kanayago.trace.server: Trace communication between VSCode and the language server (default: "off")
Example .vscode/settings.json:
{
"kanayago.serverPath": "kanayago",
"kanayago.trace.server": "verbose"
}
Usage
Once installed, the extension automatically activates when you open Ruby files (.rb). Syntax errors will be highlighted in real-time as you type.
Building
Install dependencies:
npm install
Package the extension:
npx vsce package
This will create a .vsix file that can be installed in VSCode.
License
MIT
| |