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

@ -541,7 +541,7 @@ impl<Checker: BuildRunnable> Server<Checker> {
.get(uri)?
.object
.as_ref()
.map(|hir| HIRVisitor::new(hir, uri.clone(), !cfg!(feature = "py_compat")))
.map(|hir| HIRVisitor::new(hir, &self.file_cache, uri.clone()))
}
pub(crate) fn get_local_ctx(&self, uri: &NormalizedUrl, pos: Position) -> Vec<&Context> {