racket-langserver
The racket-langserver is a Language Server Protocol implementation for Racket. This project seeks to use DrRacketās public APIs to provide functionality that mimics DrRacketās code tools as closely as possible.
1 Installation and usage
A Racket runtime is a prerequisite, so before using racket-langserver, ensure that a Racket runtime is installed. You can install from the official download page or install one from your package manager.
First, install an LSP runtime for your editor.
Next, install the package via raco:
raco pkg install racket-langserver
To update the racket-langserver useraco pkg update racket-langserver
Once it is installed, you can configure your editor to use a custom LSP client for Racket files (.rkt), and set the command for the custom client to
racket -l racket-langserver
You may need to restart your LSP runtime or your editor for racket-langserver to start.
1.1 VSCode
Use the Magic Racket extension.