Introduce a BuiltInBuildSystemAdapter that can be used to transition BuildSystem to a type that implements BSP

This commit is contained in:
Alex Hoppen
2024-09-09 15:17:55 -07:00
parent fd0573e4b8
commit b4d04ce983
15 changed files with 221 additions and 56 deletions

View File

@@ -119,6 +119,11 @@ package protocol BuiltInBuildSystem: AnyObject, Sendable {
/// context.
func setDelegate(_ delegate: BuildSystemDelegate?) async
/// Set the message handler that is used to send messages from the build system to SourceKit-LSP.
// FIXME: (BSP Migration) This should be set in the initializer but can't right now because BuiltInBuildSystemAdapter is not
// responsible for creating the build system.
func setMessageHandler(_ messageHandler: BuiltInBuildSystemMessageHandler) async
/// Whether the build system is capable of preparing a target for indexing, ie. if the `prepare` methods has been
/// implemented.
var supportsPreparation: Bool { get }