pub trait LsHook:
Debug
+ Send
+ Sync {
// Required methods
fn start_request(&self, req_id: &RequestId, method: &str);
fn stop_request(&self, req_id: &RequestId, method: &str, received_at: Time);
fn start_notification(&self, track_id: i32, method: &str);
fn stop_notification(
&self,
track_id: i32,
method: &str,
received_at: Time,
result: LspResult<()>,
);
}Expand description
A trait that defines the hook for the language server.
Required Methods§
Sourcefn start_request(&self, req_id: &RequestId, method: &str)
fn start_request(&self, req_id: &RequestId, method: &str)
Starts a request.
Sourcefn stop_request(&self, req_id: &RequestId, method: &str, received_at: Time)
fn stop_request(&self, req_id: &RequestId, method: &str, received_at: Time)
Stops a request.
Sourcefn start_notification(&self, track_id: i32, method: &str)
fn start_notification(&self, track_id: i32, method: &str)
Starts a notification.