Skip to content

Perform LSP server initialisation outside of the LanguageClient trait #142

@ferranbt

Description

@ferranbt

Currently, we implement the LSP initialize method to set up our server's internal state (workspace directory, configuration, etc.). However, since the server object must be created before initialize is called, all internal state needs to be wrapped in Mutex to allow mutation during initialization.

The proposed solution is to handle initialization outside the LSP trait implementation, then pass the initialized state when creating the server object. This would eliminate the need for Mutex wrappers around initialization data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions