Fix a problem where a sequence of out-of-block completions could lead to an inconsistent resolve session provided for a synthetic copy of a file

This commit is contained in:
Pavel V. Talanov
2015-06-03 14:19:58 +03:00
parent 7b63dd987c
commit f335e9f6b2
5 changed files with 66 additions and 5 deletions
@@ -103,7 +103,7 @@ public class KotlinCodeBlockModificationListener(modificationTracker: PsiModific
return false
}
private fun isInsideCodeBlock(element: PsiElement?): Boolean {
public fun isInsideCodeBlock(element: PsiElement?): Boolean {
if (element is PsiFileSystemItem) return false
if (element == null || element.getParent() == null) return true