Takyonic Lens
VS Code extension for Takyonic - syntax highlighting and schema management.
Features
🎨 Syntax Highlighting
Beautiful syntax highlighting for .takyonic schema files:
- Keywords:
table
- Types:
int, string, jsonb, bool, timestamp, etc.
- Annotations:
@primary, @unique, @nullable, @default, etc.
- Comments: Single-line (
//) and block (/* */)
⚡ Push Schema
Push your schema directly to the Takyonic server:
- Open a
.takyonic file
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Takyonic: Push Schema" and press Enter
Or click the ⚡ icon in the status bar when a .takyonic file is open.
📥 Pull Schema
Pull the current schema from the server:
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Takyonic: Pull Schema" and press Enter
Configuration
Open Settings (Ctrl+,) and search for "Takyonic":
| Setting |
Description |
Default |
takyonic.endpoint |
Takyonic server URL |
http://localhost:8080 |
takyonic.adminSecret |
Admin secret for authentication |
(empty) |
Example Schema
// User management tables
table users {
id: text @primary
email: text @unique
name: text
created_at: timestamp @default(CURRENT_TIMESTAMP)
metadata: jsonb @nullable
}
table logs {
id: text @primary
event: text
payload: jsonb
severity: integer @default(1)
timestamp: timestamp @default(CURRENT_TIMESTAMP)
}
Theme
The extension includes a "Takyonic Dark" theme optimized for .takyonic files. To enable it:
- Press
Ctrl+K Ctrl+T
- Select "Takyonic Dark"
Commands
| Command |
Description |
Takyonic: Push Schema |
Push the active schema to the server |
Takyonic: Pull Schema |
Pull schema from the server |
Requirements
- VS Code 1.85.0 or higher
- A running Takyonic server
Installation
From VSIX
- Download the
.vsix file
- In VS Code, press
Ctrl+Shift+P
- Type "Extensions: Install from VSIX"
- Select the downloaded file
From Source
cd vscode-extension
npm install
npm run compile
# Press F5 to launch Extension Development Host
Development
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Package extension
npm run package
License
MIT