top | item 40962001

Show HN: Integrating the Ruff Language Server

1 points| jackhodkinson | 1 year ago |satyrn.app

I wanted to learn how to create a code editor with linting support so I made one and added the code here on github: https://github.com/jackhodkinson/lsp-editor

In the process I learned quite a lot about how the Language Server Protocol works and wrote a blog post about it (see the post link). I hope other people find this interesting.

Although I don't go into it in the blog post, I found it quite challenging to synchronize the state of the code editor between the frontend, backend, and language server. I would be interested to know if anyone has suggestions for a more robust approach to synchonization the state of a code/text editor.

2 comments

order

pvg|1 year ago

You can potentially post this as a regular blog post since most reading material can't be Show HNs, take a look at https://news.ycombinator.com/showhn.html

But you probably want to space such posts out somewhat, see the bit about reposts in the FAQ https://news.ycombinator.com/newsfaq.html

jackhodkinson|1 year ago

Thank you for the advice. I get how this might be better suited for a regular blog post rather than Show HN. I will repost it in a month or so. Hopefully some people might find it interesting.