chore(els): let FileCache: Send + Sync

This commit is contained in:
Shunsuke Shibayama 2023-05-01 23:24:47 +09:00
parent 591440333a
commit c84294fc11
15 changed files with 101 additions and 88 deletions

View file

@ -507,7 +507,7 @@ impl<Checker: BuildRunnable> Server<Checker> {
let uri =
NormalizedUrl::parse(msg["params"]["textDocument"]["uri"].as_str().unwrap())?;
send_log(format!("{method}: {uri}"))?;
let code = self.file_cache.get_code(&uri)?.to_string();
let code = self.file_cache.get_entire_code(&uri)?;
self.clear_cache(&uri);
self.check_file(uri, code)
}