racket-langserver
1 Installation and usage
1.1 VSCode
8.15.0.2

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 use
  raco 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.