Skip to content

I wanner use the stdin ,stdout and tcp at the sametime #342

Answered by silvanshade
Decodetalkers asked this question in Q&A
Discussion options

You must be logged in to vote

Which logs are you referring to? Do you mean a trace of the LSP messages between the client and server?

If you have created a vscode extension for the language server, you can view the LSP message trace in the vscode editor by enabling a specific trace setting.

Otherwise, I believe you could possibly do this with tower middleware but I don't have any particular pointers for where to start with that. You might try asking on the tokio discord in the tower channel.

In theory you should also be able to do this by implementing custom types I: AsyncRead and O: AsyncWrite for the Server impl which you pass to Server::new.

In that case, you would have some custom type I: AsyncRead that behaves li…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Decodetalkers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants