mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Centralize handing of in-flight requests
This commit is contained in:
parent
0f7961d557
commit
93605c49ba
4 changed files with 188 additions and 170 deletions
|
@ -20,7 +20,7 @@ use stdx::format_to;
|
|||
use crate::{
|
||||
config::{Config, FilesWatcher},
|
||||
diagnostics::{CheckFixes, DiagnosticCollection},
|
||||
main_loop::pending_requests::{CompletedRequest, LatestRequests},
|
||||
main_loop::req_queue::{CompletedInRequest, LatestRequests},
|
||||
to_proto::url_from_abs_path,
|
||||
vfs_glob::{Glob, RustPackageFilterBuilder},
|
||||
LspError, Result,
|
||||
|
@ -236,7 +236,7 @@ impl GlobalState {
|
|||
self.analysis_host.collect_garbage()
|
||||
}
|
||||
|
||||
pub fn complete_request(&mut self, request: CompletedRequest) {
|
||||
pub(crate) fn complete_request(&mut self, request: CompletedInRequest) {
|
||||
self.latest_requests.write().record(request)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue