Skip to content

Tauri vs Electron for use with and MonacoLanguageClient #570

Answered by kaisalmen
Sahasrara asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Sahasrara I saw this, did not answer immediately and forgot. But here comes the answer.

  1. In order to use MonacoLanguageClient, would I need to implement AbstractMessageReader and AbstractMessageWriter as StdinMessageWriter/StdoutMessageReader and then initialize MonacoLanguageClient with those inside a MessageTransports container object?

monaco-languageclient is usually needed where you cannot write to std-in/std-out. In a browser context this is not possible. That's why in our examples with a non web-worker language server (pyhton, json) a node app serves as translator like this:
browser <-websocket-> node-app <-std-in/std-out-> language-server

If you have access from your client/…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CGNonofr
Comment options

Answer selected by Sahasrara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants