1 2 3 4 5 6 7 8 9
use crate::server_handler::ServerContext; use lsp_types::notification::Notification; pub trait NotificationHandler { type N: Notification; fn handle(context: &mut ServerContext, params: <Self::N as Notification>::Params) -> Option<()>; }