This extension adds language support and some IDE-lite editor features for the Janet programming language to VS Code.
Just starting with Janet? See the official language introduction here.
.janet
file type support and syntax highlighting for Janet filesJanet: Start REPL
in the Command Palette)
.janet
file (with alt+e
) or load the entire open file into the REPL (with alt+l
), creating a new one if none is currently activeTab
)Ctrl+Left/Right
to move cursor by S-ExpAlt+Up/Down
to drag S-Exp forward/backwardMore coming soon!
startup.janet
Janet LSP works by running a copy of the Janet runtime and flychecking (that is, compiling but not fully evaluating) the code in your active editor window using that runtime instance. This allows for on-hover documentation and compiler warnings to be provided by Janet itself.
Sometimes, you may need to pre-load modules or modify the environment table in other ways in order for the LSP's runtime to correctly recognize the code in your editor. In such cases, you can create a .janet-lsp/
directory in your project's root and add a startup.janet
file to that folder. If such a startup script is detected, the LSP will fully execute it prior to initiating the startup handshake with your editor.
The code in startup.janet
is normal Janet source code that is executed by the server's runtime. Don't put any code you don't completely trust in startup.janet
.
Issues and PRs are welcome!
Huge portions of this extension are remixed from other open source projects, including: