ballerina-platform / lsp4intellij

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

Allow InitializeParams.ClientInfo to provide more info #338

Closed payne911 closed 9 months ago

payne911 commented 9 months ago

We would like to use this structure which allows providing extra information about the client plugin:

data class MyClientInfo(
    val myName: String,
    val myVersion: String?,
    val extensionName: String?,
    val extensionVersion: String?
) : ClientInfo(myName, myVersion)

But we're not sure if there's already a way for us to actually change the InitializeParams structure being used. Extending it doesn't seem to work because of lsp4j's InitializeParamsTypeAdapter which would also need to be changed?

nixel2007 commented 9 months ago

You could use initializationOptions in InitializeParams for that purpose.

payne911 commented 9 months ago

Good point! Thanks