mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
fix: bad root change cause incorrect vfs cache frequently (#1661)
This commit is contained in:
parent
2709aaf429
commit
979e0b2a55
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ impl<F: CompilerFeat> RevisingUniverse<'_, F> {
|
|||
self.view_changed = true;
|
||||
|
||||
// Resets the cache if the workspace root has changed.
|
||||
let root_changed = self.inner.entry.workspace_root() == state.workspace_root();
|
||||
let root_changed = self.inner.entry.workspace_root() != state.workspace_root();
|
||||
if root_changed {
|
||||
log::info!("resetting shadow root_changed");
|
||||
self.vfs().reset_cache();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue