mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix: Differentiate between vfs config load and file changed events
This commit is contained in:
parent
f5f7ddae23
commit
e1c67485bf
8 changed files with 26 additions and 16 deletions
|
@ -51,6 +51,8 @@ pub enum Message {
|
|||
Progress { n_total: usize, n_done: usize, config_version: u32 },
|
||||
/// The handle loaded the following files' content.
|
||||
Loaded { files: Vec<(AbsPathBuf, Option<Vec<u8>>)> },
|
||||
/// The handle loaded the following files' content.
|
||||
Changed { files: Vec<(AbsPathBuf, Option<Vec<u8>>)> },
|
||||
}
|
||||
|
||||
/// Type that will receive [`Messages`](Message) from a [`Handle`].
|
||||
|
@ -199,6 +201,9 @@ impl fmt::Debug for Message {
|
|||
Message::Loaded { files } => {
|
||||
f.debug_struct("Loaded").field("n_files", &files.len()).finish()
|
||||
}
|
||||
Message::Changed { files } => {
|
||||
f.debug_struct("Changed").field("n_files", &files.len()).finish()
|
||||
}
|
||||
Message::Progress { n_total, n_done, config_version } => f
|
||||
.debug_struct("Progress")
|
||||
.field("n_total", n_total)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue