mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Merge pull request #18735 from Veykril/push-rpuxqrzrzvsw
fix: Set `result_id` for `RelatedFullDocumentDiagnosticReport` everywhere
This commit is contained in:
commit
31938dbfdc
2 changed files with 3 additions and 3 deletions
|
@ -126,7 +126,7 @@ impl RequestDispatcher<'_> {
|
||||||
|
|
||||||
/// Dispatches a non-latency-sensitive request onto the thread pool. When the VFS is marked not
|
/// Dispatches a non-latency-sensitive request onto the thread pool. When the VFS is marked not
|
||||||
/// ready this will return a `default` constructed [`R::Result`].
|
/// ready this will return a `default` constructed [`R::Result`].
|
||||||
pub(crate) fn on_with<R>(
|
pub(crate) fn on_with_vfs_default<R>(
|
||||||
&mut self,
|
&mut self,
|
||||||
f: fn(GlobalStateSnapshot, R::Params) -> anyhow::Result<R::Result>,
|
f: fn(GlobalStateSnapshot, R::Params) -> anyhow::Result<R::Result>,
|
||||||
default: impl FnOnce() -> R::Result,
|
default: impl FnOnce() -> R::Result,
|
||||||
|
|
|
@ -1095,12 +1095,12 @@ impl GlobalState {
|
||||||
.on_latency_sensitive::<NO_RETRY, lsp_request::SemanticTokensRangeRequest>(handlers::handle_semantic_tokens_range)
|
.on_latency_sensitive::<NO_RETRY, lsp_request::SemanticTokensRangeRequest>(handlers::handle_semantic_tokens_range)
|
||||||
// FIXME: Some of these NO_RETRY could be retries if the file they are interested didn't change.
|
// FIXME: Some of these NO_RETRY could be retries if the file they are interested didn't change.
|
||||||
// All other request handlers
|
// All other request handlers
|
||||||
.on_with::<lsp_request::DocumentDiagnosticRequest>(handlers::handle_document_diagnostics, || lsp_types::DocumentDiagnosticReportResult::Report(
|
.on_with_vfs_default::<lsp_request::DocumentDiagnosticRequest>(handlers::handle_document_diagnostics, || lsp_types::DocumentDiagnosticReportResult::Report(
|
||||||
lsp_types::DocumentDiagnosticReport::Full(
|
lsp_types::DocumentDiagnosticReport::Full(
|
||||||
lsp_types::RelatedFullDocumentDiagnosticReport {
|
lsp_types::RelatedFullDocumentDiagnosticReport {
|
||||||
related_documents: None,
|
related_documents: None,
|
||||||
full_document_diagnostic_report: lsp_types::FullDocumentDiagnosticReport {
|
full_document_diagnostic_report: lsp_types::FullDocumentDiagnosticReport {
|
||||||
result_id: None,
|
result_id: Some("rust-analyzer".to_owned()),
|
||||||
items: vec![],
|
items: vec![],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue