提交 ff7be5b7 编写于 作者: D Dmitry Jemerov

don't increment out-of-code-block modification count for changes that are not in Kotlin files

上级 ab820492
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册