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

@@ -136,7 +136,7 @@ actor LegacyBuildServerBuildSystem: MessageHandler, BuiltInBuildSystem {
connectionToSourceKitLSP.send(OnBuildTargetDidChangeNotification(changes: nil))
}
package nonisolated var supportsPreparation: Bool { false }
package nonisolated var supportsPreparationAndOutputPaths: Bool { false }
package func buildTargets(request: WorkspaceBuildTargetsRequest) async throws -> WorkspaceBuildTargetsResponse {
return WorkspaceBuildTargetsResponse(targets: [
@@ -168,7 +168,13 @@ actor LegacyBuildServerBuildSystem: MessageHandler, BuiltInBuildSystem {
package func didChangeWatchedFiles(notification: OnWatchedFilesDidChangeNotification) {}
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(