ballerina-platform / lsp4intellij

This language client library provides language server protocol support for IntelliJ IDEA and other Jetbrains IDEs.
Apache License 2.0
429 stars 104 forks source link

[question] Calling LS methods directly #18

Open nixel2007 opened 5 years ago

nixel2007 commented 5 years ago

I have a LS with some stored configuration. I want to update its configuration from IDEA via some button in settings window. Is there any method to get connected language-server and fire workspace/didChangeConfiguration event from my plugin?

NipunaRanasinghe commented 5 years ago

I believe it should be exposed via this client API. I'll have a look :)

DanielFGA commented 5 years ago

Hello, I have a similar question. I want to build a tool window in my plugin, where I display the diagnostics. Is there a way to get current diagnostics from the LS into my plugin? I already saw that the EditorEventManager has a list with the current diagnostics, but I can´t figure out, how to get them.