internal: more visibility into why things happen

This commit is contained in:
Aleksey Kladov 2022-04-16 13:16:58 +01:00
parent 6f037da8cb
commit 3f4235d59b
4 changed files with 35 additions and 28 deletions

View file

@ -192,7 +192,8 @@ impl GlobalState {
if let Some(path) = vfs.file_path(file.file_id).as_path() {
let path = path.to_path_buf();
if reload::should_refresh_for_change(&path, file.change_kind) {
self.fetch_workspaces_queue.request_op();
self.fetch_workspaces_queue
.request_op(format!("vfs file change: {}", path.display()));
}
fs_changes.push((path, file.change_kind));
if file.is_created_or_deleted() {