Skip to content

Should workspace/configuration be allowed during initialize? #1006

Closed
@bmewburn

Description

@bmewburn

My language server sends a workspace/configuration request upon receiving the initialized notification. For the most part this works well but for a couple of configuration options the server doesn't get the values early enough.

While the server is waiting for the workspace/configuration request/response a didOpen notification may happen and the server may enter a state based on a default set of options. When the workspace/configuration response is received then it can be costly to then correct the server state based on the actual configuration values.

I could put these certain configuration options in initializationOptions but it would be good to manage all configuration in one area. Having the ability to pull configuration from the client before declaring that the server is ready would be useful in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions