Show HN: Janet LSP with VS Code Extension marketplace.visualstudio.com · 3 point...

@show

Show HN: Janet LSP with VS Code Extension marketplace.visualstudio.com · 3 points · 0 comments · HN thread

TL;DR yajlsp (Yet Another Janet LSP) is a VS Code extension, published on the Marketplace, that adds language intelligence for the Janet Lisp dialect using a bundled Janet language server. It provides completion, hover docs, go-to-definition, references, diagnostics, formatting via Spork's fmt, snippets and structural editing commands. The author says most of the code was generated with Codex. The Show HN post has 3 points and no comments.

  • Requires Janet with its package manager jpm, the Spork package (jpm install spork), and VS Code 1.91 or later on Linux or macOS; Windows users need WSL or SSH remote workspaces.
  • Features include completion from local bindings, workspace symbols and qualified imports, hover documentation, F12 go-to-definition and Shift+F12 find references, including closed workspace files.
  • Diagnostics report only the first parser error; macro-generated exports and recursive import resolution are not supported yet.
  • Format on save uses Spork's fmt and is skipped for files with parser errors.
  • Native module docs are generated by running each installed module's initialization in a subprocess with a timeout, with normal user permissions and no sandbox.
  • Includes structural editing commands (slurp and barf forward) bound to two-step chords, and it replaces the older Janet LSP / jajlsp extension.

Discussion No comments have been posted yet, so the thread has no discussion and no reactions to the project.

#janet #vscode #languageServer #lisp #showHN