Reverse parsing is adapter-based and syntax-aware. Prisma uses a dedicated DSL parser, TypeORM uses the TypeScript compiler API, Python imports use CST-backed parsing, and Hibernate imports use Java syntax parsing with annotation-aware extraction.
Development
Supported local and CI runtime: Node.js 20.x.
Install and build:
nvm use
npm install
npm run compile
npm run build:webview
Run in VS Code:
Open the repo in VS Code
Press F5
In the Extension Development Host, create or open a .orm.json file
Useful commands:
npm run compile
npm run lint
npm run build:webview
npm run test:local
npm run test:integration
npm run preflight
npm run package:vsix
Notes
Undo/redo is backed by shared history utilities in the webview flow.
XMI round-trip behavior is covered by regression tests.
Parser imports return diagnostics and confidence metadata.
Canonical forward/reverse regression tests cover all five ORM targets across PostgreSQL and MySQL.
Known Limitations
Parser coverage is strongest for canonical/generated code and common ORM patterns; advanced handwritten metaprogramming may still import partially with warnings.
Automated VS Code integration tests use a pinned vscode-test host version and are intended to run on Linux with a display server or xvfb.
The editor currently focuses on UML class diagrams only.