4 ms·
Is there any good resources on writing language servers? I've tried writing my own one but while LSP is well documented, it wasn't really beginner friendly (ie
by laumars 7y ago
Is there any good resources on writing language servers? I've tried writing my own one but while LSP is well documented, it wasn't really beginner friendly (ie where do I start when writing one from scratch?).
- nickmqb 7y agoI didn't look for any resources beyond the LSP spec and VS Code documentation, so I can't offer any recommendations here I'm afraid. That said, looking back I'm pretty happy with the choice of using VS Code as the initial editor to get things up and running. While not perfect (e.g. VS Code will silently ignore your JSON message if you miss a closing brace), the docs are pretty good and it offers a reasonable level of debugging functionality (such as an output window where you can see messages sent to the language server). The Muon VS Code extension [1] is pretty minimal in itself, and it's MIT licensed so feel free fork and use it as a starting point. [1] https://github.com/nickmqb/vscode-muon https://github.com/nickmqb/vscode-muon
- laumars 7y agoThank you. I may well do just that. (this is what I love about open source -- when it works well everyone is giving each other a helping leg up).
- ahaferburg 7y agoThe Sublime Text LSP plugin has some debugging facilities, you can poke it however you like since it's written in Python, and the project is run by two of the most positive, supportive, and just plain nice people that I've ever dealt with in an open source project. https://github.com/tomv564/LSP https://github.com/tomv564/LSP