pub trait Initializer {
type I: for<'de> Deserialize<'de>;
type S;
// Required method
fn initialize(self, req: Self::I) -> (Self::S, AnySchedulableResponse);
}
Expand description
A trait that initializes the language server.
Required Associated Types§
Sourcetype I: for<'de> Deserialize<'de>
type I: for<'de> Deserialize<'de>
The type of the initialization request.
Required Methods§
Sourcefn initialize(self, req: Self::I) -> (Self::S, AnySchedulableResponse)
fn initialize(self, req: Self::I) -> (Self::S, AnySchedulableResponse)
Handles the initialization request.
If the behind protocol is the standard LSP, the request is
InitializeParams
.