Fix background indexing behavior if a source file is included in two targets via a symlink

Consider the following scenario: A project has target A containing A.swift an target B containing B.swift. B.swift is a symlink to A.swift. When A.swift is modified, both the dependencies of A and B need to be marked as having an out-of-date preparation status, not just A.
This commit is contained in:
Alex Hoppen
2024-12-09 15:06:39 -08:00
parent 247acf6ae7
commit 5eb460f148
7 changed files with 132 additions and 9 deletions

View File

@@ -587,7 +587,7 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
SourceItem(
uri: DocumentURI($0),
kind: $0.isDirectory ? .directory : .file,
generated: false,
generated: false
)
}
result.append(SourcesItem(target: target, sources: sources))