Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Posecode for VS Code

Language support for the Posecode (.posecode) kinematic motion DSL:

  • Syntax highlighting (TextMate grammar): keywords, kinds, joints, actions, easings, strings, numbers.
  • Diagnostics: parse errors and range-of-motion safety clamps as you type (e.g. knees: flex 200° → clamped to 144°).
  • Completion (context-aware): kinds after posecode, joints at line start, actions after <joint>:, easings in a step header, poses after pose start =, effectors after ground-lock:.
  • Hover: the safe ROM range for a joint + action, and short docs for keywords.

The smart features are provided by posecode-lsp, which shares its language logic (posecode-language) with the web playground, so the editor and the playground always agree.

Develop / run locally

From the repo root:

npm install
npm run build -w posecode-vscode   # compiles the client + bundles the LSP to dist/server.cjs

Then open this folder in VS Code and press F5 ("Run Extension") to launch an Extension Development Host, and open any .posecode file.

Package

npx @vscode/vsce package   # produces posecode-vscode-0.1.0.vsix