fix(els): file operation bugs

This commit is contained in:
Shunsuke Shibayama 2023-04-30 18:00:42 +09:00
parent 863f1f2fdb
commit 6c665157bc
6 changed files with 73 additions and 70 deletions

View file

@ -59,7 +59,7 @@ impl<Checker: BuildRunnable> Server<Checker> {
character: range.end.character + 1,
},
};
let code = util::get_ranged_code_from_uri(&uri, next)?;
let code = self.file_cache.get_ranged(&uri, next)?;
match code.as_ref().map(|s| &s[..]) {
None => {
// \n