Toolv2.5.0

VS Code Extension

Vollständige IDE-Unterstützung für Velisch mit Syntax-Highlighting, IntelliSense, Debugging und Code-Generierung.

Installation

cd tools/vscode-extension
npm install
npm run compile
code --install-extension velisch-0.1.0.vsix

Features

Syntax-Highlighting

Keywords, Decorators, Types, String Interpolation, Doc-Comments

IntelliSense

Auto-Completion, Go-to-Definition, Hover-Dokumentation

Debugger Integration

DAP-Support, Breakpoints, Variable Inspection

Code Snippets

Templates für @Flow, @VelinAutoDoc, @VelinPipeline

Code Formatting

Format on Save, Format Selection

Code Actions

Quick Fixes, Refactoring, Import-Organisierung

Code Snippets

Tippe den Präfix und drücke Tab:

velin-flow

Template für @Flow Funktionen

velin-autodoc

Template für @VelinAutoDoc

velin-autotest

Template für @VelinAutoTest

velin-pipeline

Template für @VelinPipeline Module

velin-insight

Template für @VelinInsight Module

Commands

Compiler Commands

velin.compile

Kompiliert Datei

velin.check

Prüft Datei

velin.format

Formatiert Datei

Code Generation Commands

velin.generate.mlFunction

ML-Funktion

velin.generate.aiEndpoint

AI-Endpoint

velin.generate.security

Security-Code

velin.generate.cache

Cache-Code

velin.generate.health

Health-Check

velin.generate.logging

Logging-Code

Debugger-Konfiguration

.vscode/launch.jsonjson
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "velin",
      "request": "launch",
      "name": "Debug Velisch",
      "program": "${workspaceFolder}/main.velin"
    }
  ]
}

Einstellungen

settings.jsonjson
{
  "velin.lsp.path": "velin-lsp",
  "velin.debugger.path": "velin-debugger",
  "velin.debugger.port": 4711,
  "velin.lsp.trace": "off",
  "velin.lsp.logLevel": "info"
}

Syntax-Highlighting

Unterstützt alle Velisch-Features:

  • Keywords (fn, let, return, etc.)
  • Decorators (@GET, @POST, @Auth, @Flow, etc.)
  • Types (string, number, List, Result, etc.)
  • String Interpolation
  • Doc-Comments (///)

Integrierte Tools

LSP Server

Auto-Completion, Go-to-Definition, Refactoring

Debugger

DAP-Support für Breakpoints und Variable Inspection

Linter

Zeigt Linter-Probleme direkt im Editor

Formatter

Code-Formatierung mit velin-fmt