mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assert that completion file copy should be non-physical and non-event-system-enabled
This commit is contained in:
+4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user