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

@@ -66,7 +66,7 @@ package actor FixedCompilationDatabaseBuildSystem: BuiltInBuildSystem {
indexStorePath?.deletingLastPathComponent().appendingPathComponent("IndexDatabase")
}
package nonisolated var supportsPreparation: Bool { false }
package nonisolated var supportsPreparationAndOutputPaths: Bool { false }
private static func parseCompileFlags(at configPath: URL) throws -> [String] {
let fileContents: String = try String(contentsOf: configPath, encoding: .utf8)
@@ -121,7 +121,13 @@ package actor FixedCompilationDatabaseBuildSystem: 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(