From 282e7745ee4685a071bf19ecd2fbea2b52c0b0a6 Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Wed, 4 Feb 2026 11:21:56 +0100 Subject: [PATCH] Fix inverted log check when updating the index store --- Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift b/Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift index 64157ef2..33a6990c 100644 --- a/Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift +++ b/Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift @@ -261,7 +261,7 @@ package struct UpdateIndexStoreTaskDescription: IndexTaskDescription { mainFile: fileInfo.mainFile, outputPath: fileInfo.outputPath ) - if !hasUpToDateUnit { + if hasUpToDateUnit { logger.debug("Not indexing \(fileInfo.file.forLogging) because index has an up-to-date unit") // We consider a file's index up-to-date if we have any up-to-date unit. Changing build settings does not // invalidate the up-to-date status of the index.