Editor setup
VS Code
The Pleno extension adds highlighting, the language server, the debugger and a test view.
Download
pleno-language-<version>.vsixfrom the latest release and install it:shcode --install-extension pleno-language-<version>.vsixThe extension is not on the VS Code Marketplace yet.
Run Pleno: Install or Update Toolchain from the Command Palette (
Ctrl+Shift+P). Skip this if Pleno is already on yourPATH.
You get:
- Errors as you type, hover information, completion, signature help and inlay hints.
- Go to definition, find references, rename, and Format Document (
Shift+Alt+F). - Run and Debug buttons for
.plnfiles; pressF5to debug with breakpoints. - Snippets such as
fn,class,matchandtryf.
Pleno: Show Pleno Status shows which pleno, pleno-lsp and pleno-dap the extension uses. To use specific builds, set pleno.cli.path, pleno.lsp.path and pleno.dap.path.
Other editors
Any editor with Language Server Protocol support can use pleno-lsp, which talks over standard input and output. Point the editor's LSP client at the pleno-lsp command for .pln files. The debugger, pleno-dap, speaks the Debug Adapter Protocol over standard input and output in the same way.