mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
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:
@@ -88,7 +88,9 @@ package class MultiFileTestProject {
|
||||
/// File contents can also contain `$TEST_DIR`, which gets replaced by the temporary directory.
|
||||
package init(
|
||||
files: [RelativeFileLocation: String],
|
||||
workspaces: (URL) async throws -> [WorkspaceFolder] = { [WorkspaceFolder(uri: DocumentURI($0))] },
|
||||
workspaces: (_ scratchDirectory: URL) async throws -> [WorkspaceFolder] = {
|
||||
[WorkspaceFolder(uri: DocumentURI($0))]
|
||||
},
|
||||
initializationOptions: LSPAny? = nil,
|
||||
capabilities: ClientCapabilities = ClientCapabilities(),
|
||||
options: SourceKitLSPOptions = .testDefault(),
|
||||
|
||||
Reference in New Issue
Block a user