language_server_protocol.md: Status Bar Integration

This commit is contained in:
Yann Cébron 2024-03-04 17:36:28 +01:00
parent 01658d9c3f
commit ef342fa2b1
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,9 @@ _Early Access Program_ (EAP) releases of upcoming versions are available [here](
### IntelliJ Platform 2024.1
Status bar widget for LSP servers
: Language plugins using LSP can now provide their status for [](language_server_protocol.md#status-bar-integration).
### IntelliJ IDEA 2024.1
Unbundled plugins

View File

@ -114,6 +114,14 @@ private class FooLspServerDescriptor(project: Project) : ProjectWideLspServerDes
</procedure>
### Status Bar Integration
Since 2024.1, a dedicated <control>Language Services</control> status bar widget is available to monitor the status of all LSP servers.
Override `LspServerSupportProvider.createLspServerWidgetItem()` to provide a custom icon and link to [Settings](settings.md) page (if available).
If there are configuration problems preventing from starting an LSP server, the plugin can provide a widget item
with an error and give the user a hint how to fix the problem.
## Language Server Integration
Language Server is a separate process that analyzes source code and provides language-specific features to development tools.