mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Report flycheck errors via status
This commit is contained in:
parent
a2b59b110f
commit
f876adf617
5 changed files with 16 additions and 13 deletions
|
@ -75,6 +75,7 @@ pub(crate) struct GlobalState {
|
|||
pub(crate) flycheck: Arc<[FlycheckHandle]>,
|
||||
pub(crate) flycheck_sender: Sender<flycheck::Message>,
|
||||
pub(crate) flycheck_receiver: Receiver<flycheck::Message>,
|
||||
pub(crate) last_flycheck_error: Option<String>,
|
||||
|
||||
// VFS
|
||||
pub(crate) loader: Handle<Box<dyn vfs::loader::Handle>, Receiver<vfs::loader::Message>>,
|
||||
|
@ -179,6 +180,7 @@ impl GlobalState {
|
|||
flycheck: Arc::from(Vec::new()),
|
||||
flycheck_sender,
|
||||
flycheck_receiver,
|
||||
last_flycheck_error: None,
|
||||
|
||||
vfs: Arc::new(RwLock::new((vfs::Vfs::default(), IntMap::default()))),
|
||||
vfs_config_version: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue