Closed OceanBelongsToMe closed 4 months ago
let (service, socket) = LspService::new(|client| Backend {
client,
trie: Default::default(),
});
Server::new(stdin, stdout, socket).serve(service).await;
I think you may printed something.
remove all print
/dbg
if you use stdio/stdout
I think you may printed something.
remove all
dbg
if you usestdio/stdout
yes you are right, thanks for your help!
Client Language Server Example: connection to server is erroring. Header must provide a Content-Length property. {"{\"jsonrpc\"":"\"2.0\",\"result\":{\"contents\":\"## test1\n\n- test\n | a | b | c |\n | --- | --- | --- |\n | ss | ss | ss |\n | ss | ss | ss |\",\"range\":{\"end\":{\"character\":6,\"line\":7},\"start\":{\"character\":6,\"line\":7}}},\"id\":25}Content-Length: 39"} Shutting down server.