emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.78k stars 883 forks source link

Extensions / rust diagnostics #45

Closed alanz closed 7 years ago

alanz commented 7 years ago

I notice rustls uses custom diagnostics.

https://github.com/rust-lang-nursery/rls/blob/88fc39bd654c536b4f8f1cd1fc8245706f0284ec/contributing.md#extensions-to-the-language-server-protocol

" The RLS uses some custom extensions to the Language Server Protocol. Currently these are all sent from the RLS to an LSP client and are only used to improve the user experience by showing progress indicators.

See also https://github.com/Microsoft/language-server-protocol/issues/70

vibhavp commented 7 years ago

I'll add a notification handler for this, thanks.

On 07-Apr-2017 2:20 PM, "Alan Zimmerman" notifications@github.com wrote:

I notice rustls uses custom diagnostics.

https://github.com/rust-lang-nursery/rls/blob/ 88fc39bd654c536b4f8f1cd1fc8245706f0284ec/contributing.md# extensions-to-the-language-server-protocol

" The RLS uses some custom extensions to the Language Server Protocol. Currently these are all sent from the RLS to an LSP client and are only used to improve the user experience by showing progress indicators.

  • rustDocument/diagnosticsBegin: notification, no arguments. Sent before a build starts and before any diagnostics from a build are sent.
  • rustDocument/diagnosticsEnd: notification, no arguments. Sent when a build is complete (successfully or not, or even skipped) and all post-build analysis by the RLS is complete. "

See also Microsoft/language-server-protocol#70 https://github.com/Microsoft/language-server-protocol/issues/70

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vibhavp/emacs-lsp/issues/45, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCymIW0PgOnNh0G8j2E1XkCP0yeWlixks5rtfjygaJpZM4M2oCQ .