don't increment out-of-code-block modification count for changes that are not in Kotlin files
This commit is contained in:
+1
@@ -40,6 +40,7 @@ public class JetCodeBlockModificationListener implements PsiTreeChangePreprocess
|
||||
|
||||
@Override
|
||||
public void treeChanged(final PsiTreeChangeEventImpl event) {
|
||||
if (!(event.getFile() instanceof JetFile)) return;
|
||||
switch (event.getCode()) {
|
||||
case BEFORE_CHILDREN_CHANGE:
|
||||
case BEFORE_PROPERTY_CHANGE:
|
||||
|
||||
@@ -125,6 +125,7 @@ public class JetLightClass extends AbstractLightClass implements JetJavaMirrorMa
|
||||
answer = CachedValuesManager.getManager(getProject()).createCachedValue(new CachedValueProvider<PsiJavaFileStub>() {
|
||||
@Override
|
||||
public Result<PsiJavaFileStub> compute() {
|
||||
//System.out.println("Calculating Java stub for " + file.getName() + ", OOCB modcount " + PsiModificationTracker.SERVICE.getInstance(getProject()).getOutOfCodeBlockModificationCount());
|
||||
return Result.create(calcStub(), PsiModificationTracker.OUT_OF_CODE_BLOCK_MODIFICATION_COUNT);
|
||||
}
|
||||
}, false);
|
||||
|
||||
Reference in New Issue
Block a user