use lsp_types_max::notification::{Cancel, SetTrace, WorkDoneProgressCancel};
use lsp_types_max::{
CancelParams, NumberOrString, ProgressToken, SetTraceParams, TraceValue,
WorkDoneProgressCancelParams,
};
use super::Client;
impl Client {
pub async fn cancel_request(&self, id: NumberOrString) {
self.send_notification::<Cancel>(CancelParams { id }).await;
}
pub async fn work_done_progress_cancel(&self, token: ProgressToken) {
self.send_notification::<WorkDoneProgressCancel>(WorkDoneProgressCancelParams { token })
.await;
}
pub async fn set_trace(&self, value: TraceValue) {
self.send_notification::<SetTrace>(SetTraceParams { value })
.await;
}
}