Fix Cargo.toml change detection

This commit is contained in:
Laurențiu Nicola 2021-09-10 19:34:47 +03:00
parent 21a1ced8b6
commit 8875f2c8aa

View File

@ -186,9 +186,9 @@ impl GlobalState {
}
for file in changed_files {
if file.is_created_or_deleted() {
if let Some(path) = vfs.file_path(file.file_id).as_path() {
fs_changes.push((path.to_path_buf(), file.change_kind));
if let Some(path) = vfs.file_path(file.file_id).as_path() {
fs_changes.push((path.to_path_buf(), file.change_kind));
if file.is_created_or_deleted() {
has_fs_changes = true;
}
}