mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
for unsaved documents take proper psi
This commit is contained in:
@@ -113,7 +113,7 @@ public class DuplicatesIndex extends FileBasedIndexExtension<Integer, TIntArrayL
|
||||
|
||||
MyFragmentsCollector collector = new MyFragmentsCollector(profile, ((LanguageFileType)type).getLanguage());
|
||||
DuplocateVisitor visitor = profile.createVisitor(collector, true);
|
||||
visitor.visitNode(inputData.getPsiFile());
|
||||
visitor.visitNode(((FileContentImpl)inputData).getPsiFileAccountingForUnsavedDocument());
|
||||
|
||||
return collector.getMap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user