Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Integrating the Ruff Language Server (satyrn.app)
1 point by jackhodkinson on July 14, 2024 | hide | past | favorite | 2 comments
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.



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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: