Make output paths part of the buildTarget/sources request instead of a separate request

We need a mapping from source file to its output path in order to support source files that are part of multiple targets (because we need the output path to check if we have an up-to-date unit for a file in a given target). To achieve this mapping, it’s easier to tag the output path for each source file onto the `buildTarget/sources` request.
This commit is contained in:
Alex Hoppen
2025-03-05 16:36:58 -08:00
parent c771daee1e
commit c9a1a08255
14 changed files with 56 additions and 175 deletions

View File

@@ -115,12 +115,6 @@ package actor FixedCompilationDatabaseBuildSystem: BuiltInBuildSystem {
throw ResponseError.methodNotFound(BuildTargetPrepareRequest.method)
}
package func buildTargetOutputPaths(
request: BuildTargetOutputPathsRequest
) async throws -> BuildTargetOutputPathsResponse {
throw ResponseError.methodNotFound(BuildTargetOutputPathsRequest.method)
}
package func sourceKitOptions(
request: TextDocumentSourceKitOptionsRequest
) async throws -> TextDocumentSourceKitOptionsResponse? {