You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously we would re-publish any (if any) diagnostics as part of RPC request handlers textDocument/didOpen, textDocument/didChange etc. Since #714 and also because we always maintain a cache of diagnostics in memdb we have an opportunity to compare new vs old diagnostics and only publish diagnostics if they actually changed and avoid unnecessary RPC chatter.
Background
Previously we would re-publish any (if any) diagnostics as part of RPC request handlers
textDocument/didOpen
,textDocument/didChange
etc. Since #714 and also because we always maintain a cache of diagnostics in memdb we have an opportunity to compare new vs old diagnostics and only publish diagnostics if they actually changed and avoid unnecessary RPC chatter.This is what gopls reportedly does: microsoft/language-server-protocol#1217
Use-cases
Reduce the amount of RPC notifications sent for publishing diagnostics from the server to the client.
Attempted Solutions
Re-publish any time any aspect of the module changes (#714).
Proposal
validate
diagnostics get clearedThe text was updated successfully, but these errors were encountered: