5 ms·
Very nice. Now I want to build a language server. If only I had anything to build it for.
by SwiftyBug 6mo ago
Very nice. Now I want to build a language server. If only I had anything to build it for.
- catlifeonmars 6mo agoTo give you some idea how versatile a language server is, I wrote one once to provide go-to-definition between two related blocks in a large proprietary YAML configuration file. If the definition was missing, it would also render the red squiggly line to indicate that something was misspelled. Another time I used one to make the hosts in my SSH configuration file clickable to either open a terminal with a session or just to display cpu/memory statistics. Lots of neat editor-independent interactions can be enabled using language servers.
- rumno0 6mo agoI've been thinking about this comment for a few hours now! I love it! I like building VS Code extensions and realized quickly the benefit of writing the logic in an LSP but I would never have thought to do the SSH config thing you describe. I've now started a Makefile lsp since you've inspired me to think about the painful scenarios that LSP can solve if I think a bit wider. Cheers for that!!
- rumno0 6mo agothanks! Thankfully, I finally had a reason to build an LSP (infracost LSP), so it motivated this and I'm really pleased with it