pub async fn new(link_support: bool, initialization_options: Value) -> Self {
        let (service, msg_stream) = LspService::new(crate::SlideLS::new);
        let service = Spawn::new(service);
        let mut service = Self {
            service,
            msg_stream,
        };

        service.assert_ready();

        // Initialize
        service
            .send_recv(
                initialize::request(link_support, initialization_options),
                Some(initialize::response()),
            )
            .await;
        // Mark initialized
        service.send_recv(initialized::notification(), None).await;
        // Skip "server initialized" message
        service.msg_stream.next().await;

        service
    }
/// Creates a new slide language service and initializes it.
Creates a new slide language service and initializes it.
Creates a new slide language service and initializes it .
pub async fn new(link_support: bool, initialization_options: Value) -> Self {
        let (service, msg_stream) = LspService::new(crate::SlideLS::new);
        let service = Spawn::new(service);
        let mut service = Self {
            service,
            msg_stream,
        };
        service.assert_ready();
        // Initialize
        service
            .send_recv(
                initialize::request(link_support, initialization_options),
                Some(initialize::response()),
            )
            .await;
        // Mark initialized
        service.send_recv(initialized::notification(), None).await;
        // Skip "server initialized" message
        service.msg_stream.next().await;
        service
    }
pub async fn new ( link_support : bool , initialization_options : Value ) -> Self { let ( service , msg_stream ) = LspService :: new ( crate :: SlideLS :: new ) ; let service = Spawn :: new ( service ) ; let mut service = Self { service , msg_stream , } ; service . assert_ready ( ) ; // Initialize service . send_recv ( initialize :: request ( link_support , initialization_options ) , Some ( initialize :: response ( ) ) , ) . await ; // Mark initialized service . send_recv ( initialized :: notification ( ) , None ) . await ; // Skip "server initialized" message service . msg_stream . next ( ) . await ; service }
Creates a new slide language service and initializes it.
Creates a new slide language service and initializes it .
link_support
bool
initialization_options
Value
link_support
bool
initialization_options
Value