Issue only one OpenFile and CloseFile request per handle

This commit is contained in:
Antonio Scandurra
2021-06-21 12:04:38 +02:00
parent 96c118b4df
commit f4d6fbe14f
4 changed files with 98 additions and 34 deletions
+1 -2
View File
@@ -27,7 +27,6 @@ use std::{
future::Future,
path::{Path, PathBuf},
sync::Arc,
time::UNIX_EPOCH,
};
use zed_rpc::{proto, TypedEnvelope};
@@ -131,7 +130,7 @@ mod remote {
let file = cx.update(|cx| worktree.file(&message.path, cx)).await?;
let id = file.id() as u64;
let mtime = file.mtime().duration_since(UNIX_EPOCH).unwrap().as_secs();
let mtime = file.mtime().as_secs();
*state
.shared_files