pub trait Editor<L: Lsp> {
// Required methods
fn show_message(
&mut self,
message_type: MessageType,
message: String,
) -> Fallible<()>;
fn publish_diagnostics(
&mut self,
params: PublishDiagnosticsParams,
) -> Fallible<()>;
fn spawn(
&mut self,
task: Box<dyn FnOnce(&L::Fork, &mut dyn Editor<L>) -> Fallible<()> + Send>,
);
}Expand description
Allows your LSP server to make requests of the “editor”.
The “editor” here includes the actual editor but also our dispatch loop, which to you are not distinguishable.
Required Methods§
Sourcefn show_message(
&mut self,
message_type: MessageType,
message: String,
) -> Fallible<()>
fn show_message( &mut self, message_type: MessageType, message: String, ) -> Fallible<()>
Display a message to the user.