#service #language-server #text #lsp #io #source

wat_service

WebAssembly Text Format language service

1 unstable release

0.1.0 Nov 30, 2024

#312 in WebAssembly

Download history 114/week @ 2024-11-25 38/week @ 2024-12-02 18/week @ 2024-12-09

170 downloads per month

MIT license

570KB
17K SLoC

The language service of WebAssembly Language Tools. This is the core functionality behind the language server.

The language service do nothing about IO, which means it doesn't read source files. Actually, it doesn't even require the source code to be a file on disk.

Besides, the language service doesn't communicate with language clients and process language server protocol messages (by JSON-RPC). When using the language service, you need to handle JSON-RPC communication and server loop by yourself, and call corresponding methods of the language service when receiving requests then send responses back to the client. You're free to use lsp-server or tower-lsp with the language service, or do it completely by yourself as you like.

Dependencies

~7MB
~106K SLoC