mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
fix(els): file operation bugs
This commit is contained in:
parent
863f1f2fdb
commit
6c665157bc
6 changed files with 73 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue