4 ms·
Show HN: Integrating the Ruff Language Server
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 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.
- deleted 2y ago[deleted]
- pvg 2y agoYou 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 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 https://news.ycombinator.com/newsfaq.html
- jackhodkinson 2y agoThank 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.