mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
minor
This commit is contained in:
parent
3f2a596b9b
commit
1272e6cb88
2 changed files with 6 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
//!
|
||||
//! Each tick provides an immutable snapshot of the state as `WorldSnapshot`.
|
||||
|
||||
use std::sync::Arc;
|
||||
use std::{sync::Arc, time::Instant};
|
||||
|
||||
use crossbeam_channel::{unbounded, Receiver, Sender};
|
||||
use flycheck::FlycheckHandle;
|
||||
|
@ -20,7 +20,7 @@ use crate::{
|
|||
diagnostics::{CheckFixes, DiagnosticCollection},
|
||||
from_proto,
|
||||
line_endings::LineEndings,
|
||||
main_loop::{ReqQueue, Task},
|
||||
main_loop::Task,
|
||||
reload::SourceRootConfig,
|
||||
request_metrics::{LatestRequests, RequestMetrics},
|
||||
show_message,
|
||||
|
@ -48,6 +48,9 @@ pub(crate) struct Handle<H, C> {
|
|||
pub(crate) receiver: C,
|
||||
}
|
||||
|
||||
pub(crate) type ReqHandler = fn(&mut GlobalState, lsp_server::Response);
|
||||
pub(crate) type ReqQueue = lsp_server::ReqQueue<(String, Instant), ReqHandler>;
|
||||
|
||||
/// `GlobalState` is the primary mutable state of the language server
|
||||
///
|
||||
/// The most interesting components are `vfs`, which stores a consistent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue