pub fn send_initialize<CB>(&mut self, root_uri: Option<Url>, on_init: CB)
    where
        CB: 'static + Send + FnOnce(&mut LanguageServerClient, Result<Value, Error>),
    {
        let client_capabilities = ClientCapabilities::default();

        let init_params = InitializeParams {
            process_id: Some(process::id() as u64),
            root_uri: root_uri,
            root_path: None,
            initialization_options: None,
            capabilities: client_capabilities,
            trace: None,
        };

        let params = Params::from(serde_json::to_value(init_params).unwrap());
        self.send_request("initialize", params, Box::new(on_init));
    }
/// Send the Initialize Request given the Root URI of the
/// Workspace. It is None for non-workspace projects.
Send the Initialize Request given the Root URI of the
Workspace. It is None for non-workspace projects.
Send the Initialize Request given the Root URI of the Workspace . It is None for non - workspace projects .
pub fn send_initialize<CB>(&mut self, root_uri: Option<Url>, on_init: CB)
    where
        CB: 'static + Send + FnOnce(&mut LanguageServerClient, Result<Value, Error>),
    {
        let client_capabilities = ClientCapabilities::default();
        let init_params = InitializeParams {
            process_id: Some(process::id() as u64),
            root_uri: root_uri,
            root_path: None,
            initialization_options: None,
            capabilities: client_capabilities,
            trace: None,
        };
        let params = Params::from(serde_json::to_value(init_params).unwrap());
        self.send_request("initialize", params, Box::new(on_init));
    }
pub fn send_initialize < CB > ( & mut self , root_uri : Option < Url > , on_init : CB ) where CB : ' static + Send + FnOnce ( & mut LanguageServerClient , Result < Value , Error > ) , { let client_capabilities = ClientCapabilities :: default ( ) ; let init_params = InitializeParams { process_id : Some ( process :: id ( ) as u64 ) , root_uri : root_uri , root_path : None , initialization_options : None , capabilities : client_capabilities , trace : None , } ; let params = Params :: from ( serde_json :: to_value ( init_params ) . unwrap ( ) ) ; self . send_request ( " " , params , Box :: new ( on_init ) ) ; }
Send the Initialize Request given the Root URI of the
Workspace.
Send the Initialize Request given the Root URI of the Workspace .
&mut self
root_uri
Option<Url>
on_init
CB