logoalt Hacker News

SwiftyBugtoday at 12:57 PM2 repliesview on HN

Very nice. Now I want to build a language server. If only I had anything to build it for.


Replies

catlifeonmarstoday at 3:34 PM

To 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.

show 1 reply
rumno0today at 3:54 PM

thanks!

Thankfully, I finally had a reason to build an LSP (infracost LSP), so it motivated this and I'm really pleased with it