Started in case I ever build a language server, thanks! The interface looks very understandable, and the debug server looks really nice.
Now that I think about it, it might be really cool to add LSP to my CLI framework[0] (I already have tab completion for shells, why not make an editor plugin if it's this easy ..)
I wrote this for the infracost LSP so I could write multiple IDE extensions. Its not even really a language server, its just a neat way to parse the Terraform/Cloudformation and return diagnostics.
Language servers are cool!
zephyrwhimsy 2 hours ago [-]
Markdown survived because it optimized for the right tradeoff: human readability with just enough structure for machine parsing.
SwiftyBug 4 hours ago [-]
Very nice. Now I want to build a language server. If only I had anything to build it for.
catlifeonmars 2 hours ago [-]
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.
rumno0 1 hours ago [-]
thanks!
Thankfully, I finally had a reason to build an LSP (infracost LSP), so it motivated this and I'm really pleased with it
zephyrwhimsy 28 minutes ago [-]
[dead]
peaklineops 46 minutes ago [-]
[dead]
devnotes77 3 hours ago [-]
[dead]
whateveracct 2 hours ago [-]
// DiagnosticSeverity indicates the severity of a diagnostic.
type DiagnosticSeverity int
Hmmm :robot:
jryio 2 hours ago [-]
The godoc format enforces that the comment start with the name of the identifier and be a complete sentence(s) describing what that identifier does. Predates LLMs
rumno0 1 hours ago [-]
Yeah some times godoc comments look crap by necessity
fainpul 46 minutes ago [-]
But you don't have to add a docstring. Cases like this are worse than no docstring at all, because it wastes the reader's time.
If you add one, at least make the effort to provide some useful information. For example which is more severe: higher or lower numbers.
rumno0 43 minutes ago [-]
I disagree - you should have docstring and I don't think this is worse by having it... its just not ideal
Rendered at 17:22:23 GMT+0000 (Coordinated Universal Time) with Vercel.
Now that I think about it, it might be really cool to add LSP to my CLI framework[0] (I already have tab completion for shells, why not make an editor plugin if it's this easy ..)
0: https://github.com/bbkane/warg
Language servers are cool!
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.
Thankfully, I finally had a reason to build an LSP (infracost LSP), so it motivated this and I'm really pleased with it
If you add one, at least make the effort to provide some useful information. For example which is more severe: higher or lower numbers.