Next Gen Language Server for Swirl written in C++. Currently only has dummy implementations for lsp methods.
- A C++ compiler (e.g., g++, clang++)
- CMake (3.10 or higher)
- A JS runtime and package manager (We use Bun here)
bun installThis project uses CMake to build the C++ server. The executable will be created at build/swirl_lsp.
# Configure the build
cmake -B build -S .
# Compile the server
cmake --build buildThe main.ts script acts as a client that launches and communicates with the compiled server.
bun run main.tsTo use this language server in VSCode, you can set up a simple extension or use the vscode-languageclient library to connect to the server executable and communicate via stdio.
- initialize
- textDocument/didOpen
- textDocument/didChange
- textDocument/didSave
- textDocument/completion
- textDocument/completionItem/resolve
- textDocument/hover
- textDocument/publishDiagnostics
- $/setTrace
This project was created using bun init in bun v1.1.42. Bun is a fast all-in-one JavaScript runtime.