Add BSP request to get the output file paths of a target

This commit is contained in:
Alex Hoppen
2025-02-27 16:47:18 -08:00
parent 2a05d940ff
commit c3ecb9adae
14 changed files with 241 additions and 24 deletions

View File

@@ -86,7 +86,7 @@ package actor JSONCompilationDatabaseBuildSystem: BuiltInBuildSystem {
indexStorePath?.deletingLastPathComponent().appendingPathComponent("IndexDatabase")
}
package nonisolated var supportsPreparation: Bool { false }
package nonisolated var supportsPreparationAndOutputPaths: Bool { false }
package init(
configPath: URL,
@@ -148,7 +148,13 @@ package actor JSONCompilationDatabaseBuildSystem: BuiltInBuildSystem {
}
package func prepare(request: BuildTargetPrepareRequest) async throws -> VoidResponse {
throw PrepareNotSupportedError()
throw ResponseError.methodNotFound(BuildTargetPrepareRequest.method)
}
package func buildTargetOutputPaths(
request: BuildTargetOutputPathsRequest
) async throws -> BuildTargetOutputPathsResponse {
throw ResponseError.methodNotFound(BuildTargetOutputPathsRequest.method)
}
package func sourceKitOptions(