mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lst: update CLM when directory is renamed
* we should track rename/movement events for parents as well
EA-116756 - assert: ChangeListWorker.registerChangeTracker
EA-116749 - assert: ChangeListWorker.unregisterChangeTracker
follow-up: b396704242
This commit is contained in:
@@ -654,10 +654,11 @@ class LineStatusTrackerManager(
|
||||
if (!partialChangeListsEnabled) return
|
||||
|
||||
synchronized(LOCK) {
|
||||
val document = fileDocumentManager.getCachedDocument(file) ?: return
|
||||
val data = trackers[document] ?: return
|
||||
|
||||
reregisterTrackerInCLM(data)
|
||||
for (data in trackers.values) {
|
||||
if (VfsUtil.isAncestor(file, data.tracker.virtualFile, false)) {
|
||||
reregisterTrackerInCLM(data)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user