helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.09k stars 2.46k forks source link

Popup for LSP status #10972

Open RoloEdits opened 3 months ago

RoloEdits commented 3 months ago

Having a popup for the status of launched, or of attempted launched, servers would be a quick way to see the current status of the configured LSPs. This could potentially help diagnose issues with servers that were started but crashed, rather than having to look at a task manager of some kind to see of there is a child process running or not.

Can be added to the space mode as <SPACE>l.

Could show two columns, with the name on the left, and some indicator on the right. Perhaps even just symbols. Like a green check for currently running. A red X indicating LSP was launched but the processed closed unexpectedly. And for full coverage, could show LSPs that weren't found, but configured, and thus no effort was attempted to launch. This could be some kind of grey indicator.

For instances where LSPs are running for different languages, could try to further break up the info and indicate the language associated with the LSP. perhaps as a centered header type layout, with the two columns underneath showing the LSPs the language supports. This seems more complicated due to the fact that the same LSP can be configured for multiple languages at the same time, and could be open for those languages at the same time.

RoloEdits commented 3 months ago

I know previous facsimiles were proposed, but the introduction of the diff view with <SPAVE>g, integrating something that would have otherwise needed one to go back to the shell and use whatever VC command to see, I thought I would propose a simple, more concrete idea, scoped around a specific problem of using, and troubleshooting, LSPs in an editor. Something that also needs external action currently, to see if the process if still running.