mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Don't log psiLen in VfsEventsMerger, because there is no fast and reliable way to understand if file may have PSI or not
GitOrigin-RevId: f0de712a22a10d2ec2bff34a7d9798f320556bf6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8a089889af
commit
1247257fe0
@@ -261,7 +261,10 @@ public final class VfsEventsMerger {
|
||||
if (indexedFile instanceof FileContent fileContent) {
|
||||
extra += ",contLen(b)=" + fileContent.getContent().length;
|
||||
FileType fileType = fileContent.getFileType();
|
||||
extra += ",psiLen=" + (fileType instanceof LanguageFileType ? fileContent.getPsiFile().getTextLength() : -1);
|
||||
// WARNING: LanguageFileType does not guarantee that there is a PsiFile.
|
||||
// Example: org.jetbrains.bazel.languages.projectview.base.ProjectViewFileType
|
||||
// psiLen has never been helpful to me, so don't log it for now.
|
||||
// extra += ",psiLen=" + (fileType instanceof LanguageFileType ? fileContent.getPsiFile().getTextLength() : -1);
|
||||
extra += ",bin=" + (fileType.isBinary() ? "t" : "f");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user