Skip to content

Commit

Permalink
Also include \input for external indexed files to fix #3714
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Nov 15, 2024
1 parent 1dd809e commit e2dccf8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2dccf8

Please sign in to comment.