mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
chore(els): let FileCache: Send + Sync
This commit is contained in:
parent
591440333a
commit
c84294fc11
15 changed files with 101 additions and 88 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue