Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catala Model Tree (VS Code Extension)

A lightweight VS Code extension for exploring Catala catala-metadata declarations in a normal VS Code session.

It displays a tree of:

  • Enumerations (value lists)
  • Structures (data fields)
  • Scopes (inputs/outputs/internals)

Normal Local Install

This extension can be built as a local .vsix and installed into your regular VS Code instance. Publishing to the Marketplace is not required.

  1. Open tools/catala-model-tree-vscode.
  2. Install dependencies:
    npm install
  3. Build the extension:
    npm run package
  4. Install the generated .vsix into your normal VS Code:
    code --install-extension catala-model-tree-0.2.1.vsix
    Or use VS Code → Extensions → ...Install from VSIX...
  5. In the Catala workspace where you want to use it, run Catala Model Tree: Open from the Command Palette.

Use the Rebuild button to re-parse files after model changes.

Packaging Notes

  • The package script uses a pinned local vsce dependency instead of npx, so packaging is reproducible once dependencies are installed.
  • The default package path uses --no-dependencies, which is appropriate here because the shipped extension runtime is the compiled out/ bundle plus static assets, not the development toolchain.
  • npm run package:full is available if you ever want to test the standard dependency-traversal path.

Settings

  • catalaModelTree.modelFiles: glob patterns (workspace relative) for Catala files to parse.
    • Default: src/**/*.catala_en
  • catalaModelTree.includeScopes: include scope declarations (default true).
  • catalaModelTree.includeStructures: include structure declarations (default true).
  • catalaModelTree.includeEnums: include enumeration declarations (default true).
  • catalaModelTree.rootScopes: optional list of scope names to include. Empty = all.
  • catalaModelTree.theme: auto, dark, or light.

Notes

  • This parser is intentionally simple and relies on regexes. It is meant to be fast and easy to extend.
  • It only reads catala-metadata declarations (declaration enumeration/structure/scope).

About

A Visual Model Display of Catala objects, like Oracle Policy Modeling

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages