Rename: Update references to facade class when renaming file via matching top-level class

#KT-11903 Fixed
(cherry picked from commit a1d9a25)
This commit is contained in:
Alexey Sedunov
2016-06-22 17:38:06 +03:00
parent 932892243c
commit b83902a8b5
9 changed files with 40 additions and 1 deletions
@@ -69,6 +69,7 @@ abstract class LightClassDataProvider<T : WithFileStubAndExtraDiagnostics>(
abstract val isLocal: Boolean
override fun compute(): CachedValueProvider.Result<T>? {
if (files.isEmpty()) return null
return CachedValueProvider.Result.create(
computeLightClassData(),
if (isLocal) PsiModificationTracker.MODIFICATION_COUNT else PsiModificationTracker.OUT_OF_CODE_BLOCK_MODIFICATION_COUNT