CFiggers / vscode-janet-plus-plus

Janet language support for Visual Studio Code
Other
10 stars 2 forks source link

Janet language support for Visual Studio Code

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.

Features

More coming soon!

Usage

Janet LSP and 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.

Contributing

Issues and PRs are welcome!

Prior Art

Huge portions of this extension are remixed from other open source projects, including: