Hello, i have integrated monaco-editor into our projects. it's a wondeful tools, repectively. But my projects member mainly want to support python code. how can i custom a worker for this task?
@jacobyf or @alexandrudima did you end up setting this up? We're about to start building this out ourselves.
@pkpp1233 Look at the example in monaco-languageclient. It shows how to connect the Monaco editor with the JSON language server, you can do the same for python. Also this blog post exlpains it.
I had try to use Python-language-server.And pyls may use TCP connect.
So, if I use the code like JSON-server ,it can not work..
Are there anybody workout?
@Jandou6 The example in monaco-languageclient shows how to connect the external JSON server process:
https://github.com/TypeFox/monaco-languageclient/blob/b901301fe10c7a51e3b6faa35863bb69c93fcd11/example/src/json-server-launcher.ts#L17-L28
You should be able to spawn pyls process and connect to it in the same way.
I am trying to do the same as @Jandou6 and as suggested by you, but I am getting this error:
Launching PYTHON Server failed: Error: spawn pyls --tcp --host 0.0.0.0 --port 5000 ENOENT
Most helpful comment
You can use :
Together with :