Language support for CFDL, the Cash Flow Domain Language:
diagnostics as you type, completion, go-to-definition, semantic highlighting,
and pack templates for .cfdl models.
Setup
Install the language server. On macOS or Linux,
brew install cfdl-dev/tap/cfdl installs cfdl-lsp on your PATH and the
extension finds it with no setting. Otherwise download the cfdl-lsp binary
for your platform from the releases page
(cfdl-lsp-darwin-arm64, cfdl-lsp-darwin-x64, cfdl-lsp-linux-x64 or
cfdl-lsp-windows-x64.exe), put it somewhere stable, and on macOS or Linux
make it executable.
Point the extension at it, if it is not on your PATH: set
cfdl.serverPath to the binary's absolute path.
Open a folder containing a model.cfdl and start writing. The four
domain packs (cre, credit, energy, opco) are bundled with the extension, so
use pack resolves with nothing to download.
A packs directory to use instead of the bundled packs
cfdl.entryFile
The file that marks a model root (default model.cfdl)
cfdl.enableLoweringValidation
Run pack lowering checks in the editor
cfdl.trace.server
Language server tracing: off, messages, verbose
Command
CFDL: Apply Pack Template inserts a pack's template for a contract type at
the cursor.
Learn the language
Docs, tutorials and an in-browser playground are at cfdl.dev;
the course is at learn.cfdl.dev.
License and support
Licensed under the PolyForm Noncommercial License 1.0.0: free for any
noncommercial purpose; use by or for a business needs a commercial license
(support@cfdl.dev). Bug reports and questions: support@cfdl.dev.