Skip to content

Commit

Permalink
Removed unneeded implementations from custom_notification example
Browse files Browse the repository at this point in the history
  • Loading branch information
icsaszar authored and ebkalderon committed Feb 22, 2020
1 parent 1e5a654 commit cdad611
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions examples/custom_notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ impl LanguageServer for Backend {
})
}

fn initialized(&self, printer: &Printer, _: InitializedParams) {
printer.log_message(MessageType::Info, "server initialized!");
}

fn shutdown(&self) -> Self::ShutdownFuture {
Box::new(future::ok(()))
}
Expand All @@ -99,18 +95,6 @@ impl LanguageServer for Backend {
Box::new(future::ok(None))
}

fn did_change_workspace_folders(&self, printer: &Printer, _: DidChangeWorkspaceFoldersParams) {
printer.log_message(MessageType::Info, "workspace folders changed!");
}

fn did_change_configuration(&self, printer: &Printer, _: DidChangeConfigurationParams) {
printer.log_message(MessageType::Info, "configuration changed!");
}

fn did_change_watched_files(&self, printer: &Printer, _: DidChangeWatchedFilesParams) {
printer.log_message(MessageType::Info, "watched files have changed!");
}

fn execute_command(
&self,
printer: &Printer,
Expand All @@ -129,22 +113,6 @@ impl LanguageServer for Backend {
Box::new(future::ok(None))
}

fn did_open(&self, printer: &Printer, _: DidOpenTextDocumentParams) {
printer.log_message(MessageType::Info, "file opened!");
}

fn did_change(&self, printer: &Printer, _: DidChangeTextDocumentParams) {
printer.log_message(MessageType::Info, "file changed!");
}

fn did_save(&self, printer: &Printer, _: DidSaveTextDocumentParams) {
printer.log_message(MessageType::Info, "file saved!");
}

fn did_close(&self, printer: &Printer, _: DidCloseTextDocumentParams) {
printer.log_message(MessageType::Info, "file closed!");
}

fn completion(&self, _: CompletionParams) -> Self::CompletionFuture {
Box::new(future::ok(None))
}
Expand Down

0 comments on commit cdad611

Please sign in to comment.