From e2dccf87a57eb347a7778b646dc6a3c020b4595f Mon Sep 17 00:00:00 2001 From: Thomas Schouten Date: Fri, 15 Nov 2024 14:15:16 +0100 Subject: [PATCH] Also include \input for external indexed files to fix #3714 --- .../texifyidea/index/file/LatexIndexableSetContributor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nl/hannahsten/texifyidea/index/file/LatexIndexableSetContributor.kt b/src/nl/hannahsten/texifyidea/index/file/LatexIndexableSetContributor.kt index b46ede9fc..bf6df0d9b 100644 --- a/src/nl/hannahsten/texifyidea/index/file/LatexIndexableSetContributor.kt +++ b/src/nl/hannahsten/texifyidea/index/file/LatexIndexableSetContributor.kt @@ -76,8 +76,8 @@ class LatexIndexableSetContributor : IndexableSetContributor() { // Using the index while building it may be problematic, cache the result and hope it doesn't create too much trouble if (Cache.externalDirectFileInclusions == null) { if (!DumbService.isDumb(project)) { - // For now, just do this for bibliography commands, as there this is most common - val externalFiles = LatexCommandsIndex.Util.getCommandsByNames(CommandMagic.bibliographyIncludeCommands.toSet(), project, GlobalSearchScope.projectScope(project)) + // For now, just do this for bibliography and direct input commands, as there this is most common + val externalFiles = LatexCommandsIndex.Util.getCommandsByNames(CommandMagic.includeOnlyExtensions.entries.filter { it.value.contains("bib") || it.value.contains("tex") }.map { it.key }.toSet(), project, GlobalSearchScope.projectScope(project)) // We can't add single files, so take the parent .mapNotNull { val path = it.requiredParameter(0) ?: return@mapNotNull null