/// Helper function to do the work of sending a result back to the IDE
Helper function to do the work of sending a result back to the IDE
Helper function to do the work of sending a result back to the IDE
fn send_notification<T: lsp_types::notification::Notification>(
        &mut self,
        params: T::Params,
    ) -> eyre::Result<()> {
        let msg = Notification {
            method: T::METHOD.to_owned(),
            params: serde_json::to_value(&params).unwrap(),
        };
        self.send_any(msg)
    }
fn send_notification < T : lsp_types :: notification :: Notification > ( & mut self , params : T :: Params , ) -> eyre :: Result < ( ) > { let msg = Notification { method : T :: METHOD . to_owned ( ) , params : serde_json :: to_value ( & params ) . unwrap ( ) , } ; self . send_any ( msg ) }
Helper function to do the work of sending a result back to the IDE
Helper function to do the work of sending a result back to the IDE
&mut self
params
T::Params