This is an extension clangd provides in LSP layer and to embedders of
ClangdServer. Currently there are no users of WantDiagnostics::Yes apart from
our tests, as from a practical point of view it is quite similar to
WantDiagnostics::Auto.
This patch gets rid of WantDiagnostics::Yes to get rid of some logic in
TUScheduler that handles it.
Tests are updated using the facts that an update is executed if:
- there's a read following it, or
- it is the last update in the request queue.
This cuts against the assertion in the description that there are no uses!
And I believe the debounce test demonstrates that that we will in fact debounce an initial request that's Auto, right?
So isn't this going to add 0.5sec to time-before-first-diagnostics in all cases?