#lsp #service #language-server

wat_service

WebAssembly Text Format language service

7 unstable releases (3 breaking)

new 0.4.1 Apr 13, 2025
0.4.0 Mar 30, 2025
0.3.2 Feb 7, 2025
0.2.0 Jan 5, 2025
0.1.0 Nov 30, 2024

#514 in Text editors

Download history 131/week @ 2024-12-31 26/week @ 2025-01-07 3/week @ 2025-01-14 406/week @ 2025-02-04 34/week @ 2025-02-11 10/week @ 2025-02-18 111/week @ 2025-03-25 34/week @ 2025-04-01 114/week @ 2025-04-08

259 downloads per month
Used in wat_server

MIT license

1MB
25K SLoC

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

The language service does 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

~8.5MB
~145K SLoC