mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid exception on trying to detect injection inside another injection (WI-9523)
This commit is contained in:
+2
@@ -132,6 +132,8 @@ public class InjectedLanguageUtil {
|
||||
if (file == null || !file.isPhysical() && file.getOriginalFile() == file) return;
|
||||
}
|
||||
|
||||
if (containingFile.getViewProvider() instanceof InjectedFileViewProvider) return; // no injection inside injection
|
||||
|
||||
PsiElement inTree = loadTree(host, containingFile);
|
||||
if (inTree != host) {
|
||||
host = inTree;
|
||||
|
||||
Reference in New Issue
Block a user