assert that completion file copy should be non-physical and non-event-system-enabled

This commit is contained in:
peter
2016-04-22 06:59:30 +02:00
parent e410d374dd
commit e559e04a60
@@ -752,6 +752,10 @@ public class CodeCompletionHandlerBase {
}
final PsiFile copy = (PsiFile)file.copy();
if (copy.isPhysical() || copy.getViewProvider().isEventSystemEnabled()) {
LOG.error("File copy should be non-physical and non-event-system-enabled! Language=" + file.getLanguage() + "; file=" + file + " of " + file.getClass());
}
if (mayCacheCopy) {
final Document document = copy.getViewProvider().getDocument();
assert document != null;