mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-233675 Register created dir in LVCS non-recursively
GitOrigin-RevId: f8936878d46109386258b239b2af3652e24daf64
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ca732ac8a0
commit
87d0a7bd6c
@@ -67,6 +67,14 @@ internal class LocalHistoryEventDispatcher(private val facade: LocalHistoryFacad
|
||||
true
|
||||
}, VirtualFileFilter { file -> isVersioned(file) })
|
||||
}
|
||||
|
||||
val inContent = IdeaGateway.getVersionedFilterData().myProjectFileIndices.any { it.isInContent(dir) }
|
||||
|
||||
if (!inContent && isVersioned(dir)) {
|
||||
// Non-recursively register this file or directory if it's outside project roots but is versioned.
|
||||
// (recursive iteration would load files into VFS, we don't want it)
|
||||
facade.created(gateway.getPathOrUrl(dir), dir.isDirectory)
|
||||
}
|
||||
}
|
||||
|
||||
private fun beforeContentsChange(e: VFileContentChangeEvent) {
|
||||
|
||||
Reference in New Issue
Block a user