internal: prepare to track changes to mem_docs

This commit is contained in:
Aleksey Kladov
2021-07-26 20:16:47 +03:00
parent f0db648cb6
commit 410679285b
6 changed files with 68 additions and 28 deletions

View File

@@ -403,7 +403,7 @@ impl GlobalState {
let mut load = |path: &AbsPath| {
let _p = profile::span("GlobalState::load");
let vfs_path = vfs::VfsPath::from(path.to_path_buf());
if !mem_docs.contains_key(&vfs_path) {
if !mem_docs.contains(&vfs_path) {
let contents = loader.handle.load_sync(path);
vfs.set_file_contents(vfs_path.clone(), contents);
}