Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit d324785

Browse files
authored
Merge pull request #1429 from Xanewok/remove-diagnostics-end
Remove obsolete custom progress reporting LSP messages
2 parents a484911 + 75579d7 commit d324785

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

rls/src/lsp_data.rs

-34
Original file line numberDiff line numberDiff line change
@@ -342,40 +342,6 @@ impl ClientCapabilities {
342342
}
343343
}
344344

345-
/* --------------- Custom JSON-RPC notifications -------------- */
346-
347-
/// Custom LSP notification sent to client indicating that the server is currently
348-
/// processing data and may publish new diagnostics on `rustDocument/diagnosticsEnd`.
349-
#[derive(Debug)]
350-
pub enum DiagnosticsBegin {}
351-
352-
impl LSPNotification for DiagnosticsBegin {
353-
type Params = ();
354-
const METHOD: &'static str = "rustDocument/diagnosticsBegin";
355-
}
356-
357-
/// Custom LSP notification sent to client indicating that data processing started
358-
/// by a `rustDocument/diagnosticsBegin` has ended.
359-
/// For each `diagnosticsBegin` message, there is a single `diagnosticsEnd` message.
360-
/// This means that for multiple active `diagnosticsBegin` messages, there will
361-
/// be sent multiple `diagnosticsEnd` notifications.
362-
#[derive(Debug)]
363-
pub enum DiagnosticsEnd {}
364-
365-
impl LSPNotification for DiagnosticsEnd {
366-
type Params = ();
367-
const METHOD: &'static str = "rustDocument/diagnosticsEnd";
368-
}
369-
370-
/// Custom LSP notification sent to client indicating that a build process has begun.
371-
#[derive(Debug)]
372-
pub enum BeginBuild {}
373-
374-
impl LSPNotification for BeginBuild {
375-
type Params = ();
376-
const METHOD: &'static str = "rustDocument/beginBuild";
377-
}
378-
379345
/* ---------- Temporary LSP type until window/progress proposal is done --------- */
380346

381347
// Notification from server to client for build progress.

0 commit comments

Comments
 (0)