sync_ls

Trait Initializer

Source
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§

Source

type I: for<'de> Deserialize<'de>

The type of the initialization request.

Source

type S

The type of the service.

Required Methods§

Source

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.

Implementors§