Skip to content

suzizecat/slang-lsp-tools

Repository files navigation

Documentation

The full documentation and feature description will be available here

Build instruction

Given that you have a modern C++ compiler (able to handle C++20), do:

git clone [email protected]:suzizecat/slang-lsp-tools.git
cd slang-lsp-tools
cmake -DCMAKE_BUILD_TYPE=Release -B./build
cmake --build ./build --target slang-lsp -j `nproc`

And the LSP Server should be built in ./build/slang-lsp.

If you have the mold linked, you can use to use it.

cmake -DCMAKE_BUILD_TYPE=Release -DDIPLOMAT_USE_MOLD=ON -B./build

Usage

STDIO

The language server can be run using the STDIO communication mode. To run the server, simply start it by using :

./build/slang-lsp

For debug purpose, in order to catch the communications between the server and the client, use the STDIO sniffer provided in the tools folder :

tools/stdio_sniffer/wrap.sh sniffed.log ./build/slang-lsp

TCP

To run the server linked to the vscode extension, start the server with

./build/slang-lsp --tcp

and starts the client once you get the message.

[info] Await client on port 8080...