Currently under development 🚧
How to run the extension locally:
- Clone this repository
git clone [email protected]:Ackee-Blockchain/solana-vscode.git
cd solana-vscode
- Install dependencies
cd extension && npm i
- Open the project in Cursor
cursor .
- Press F5 to start the Extension Development Host
This will:
- Open a new VS Code Extension Development Host window
- Load your extension
- Enable you to test all features
- Allow you to set breakpoints and debug the extension
Note: Make sure you have Node.js and npm installed on your system before starting.
This extension consists of two main components:
- The VSCode extension (TypeScript)
- The Language Server (Rust)
- Node.js (v20 or later)
- Rust and Cargo (latest stable)
- VSCode
solana-vscode/
├── extension/ # TypeScript extension code
│ ├── src/ # Source code
│ ├── bin/ # Language server binary
│ └── package.json # Extension manifest
└── language-server/ # Rust language server code
└── src/ # Server source code
The extension supports several development workflows:
-
Standard Development:
# One-time build F5 or "Run Extension" configuration
-
Watch Mode:
# Command Palette > Tasks: Run Task > Watch Extension and Build Language Server # or cd extension && npm run watch
-
Language Server Development:
# Build language server only cd extension && ./build-language-server.sh
Build Extension and Language Server
: One-time buildWatch Extension and Build Language Server
: Build server once and watch extensionBuild Extension and Language Server (Debug)
: Debug builds
# Extension tests
cd extension && npm test
# Language server tests
cd language-server && cargo test
The extension is packaged per platform with its corresponding language server binary. GitHub Actions workflow handles this automatically for releases.
Local packaging:
cd extension
./build-language-server.sh
npm run build
vsce package