File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ impl RequestDispatcher<'_> {
126
126
127
127
/// Dispatches a non-latency-sensitive request onto the thread pool. When the VFS is marked not
128
128
/// ready this will return a `default` constructed [`R::Result`].
129
- pub ( crate ) fn on_with < R > (
129
+ pub ( crate ) fn on_with_vfs_default < R > (
130
130
& mut self ,
131
131
f : fn ( GlobalStateSnapshot , R :: Params ) -> anyhow:: Result < R :: Result > ,
132
132
default : impl FnOnce ( ) -> R :: Result ,
Original file line number Diff line number Diff line change @@ -1095,12 +1095,12 @@ impl GlobalState {
1095
1095
. on_latency_sensitive :: < NO_RETRY , lsp_request:: SemanticTokensRangeRequest > ( handlers:: handle_semantic_tokens_range)
1096
1096
// FIXME: Some of these NO_RETRY could be retries if the file they are interested didn't change.
1097
1097
// All other request handlers
1098
- . on_with :: < lsp_request:: DocumentDiagnosticRequest > ( handlers:: handle_document_diagnostics, || lsp_types:: DocumentDiagnosticReportResult :: Report (
1098
+ . on_with_vfs_default :: < lsp_request:: DocumentDiagnosticRequest > ( handlers:: handle_document_diagnostics, || lsp_types:: DocumentDiagnosticReportResult :: Report (
1099
1099
lsp_types:: DocumentDiagnosticReport :: Full (
1100
1100
lsp_types:: RelatedFullDocumentDiagnosticReport {
1101
1101
related_documents : None ,
1102
1102
full_document_diagnostic_report : lsp_types:: FullDocumentDiagnosticReport {
1103
- result_id : None ,
1103
+ result_id : Some ( "rust-analyzer" . to_owned ( ) ) ,
1104
1104
items : vec ! [ ] ,
1105
1105
} ,
1106
1106
} ,
You can’t perform that action at this time.
0 commit comments