Skip to content

Commit c17ae69

Browse files
committed
[build-system] Rename BuildSettingsProviderList -> BuildSystemList
1 parent 802a416 commit c17ae69

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Sources/SKCore/BuildSettingsProviderList.swift renamed to Sources/SKCore/BuildSystemList.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
import Basic
1414
import LanguageServerProtocol
1515

16-
/// Provides build settings from a list of providers in priority order.
17-
public final class BuildSettingsProviderList {
16+
/// Provides build settings from a list of build systems in priority order.
17+
public final class BuildSystemList {
1818

19-
/// The build settings providers to try (in order).
19+
/// The build systems to try (in order).
2020
public var providers: [BuildSystem] = [
2121
FallbackBuildSystem()
2222
]
2323

2424
public init() {}
2525
}
2626

27-
extension BuildSettingsProviderList: BuildSystem {
27+
extension BuildSystemList: BuildSystem {
2828

2929
public var indexStorePath: AbsolutePath? { return providers.first?.indexStorePath }
3030

Sources/SourceKit/SourceKitServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ extension SourceKitServer {
228228
self.workspace = Workspace(
229229
rootPath: nil,
230230
clientCapabilities: req.params.capabilities,
231-
buildSettings: BuildSettingsProviderList(),
231+
buildSettings: BuildSystemList(),
232232
index: nil
233233
)
234234
}

Sources/SourceKit/Workspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public final class Workspace {
6969

7070
self.rootPath = try AbsolutePath(validating: url.path)
7171
self.clientCapabilities = clientCapabilities
72-
let settings = BuildSettingsProviderList()
72+
let settings = BuildSystemList()
7373
self.buildSettings = settings
7474

7575
settings.providers.insert(CompilationDatabaseBuildSystem(projectRoot: rootPath), at: 0)

Sources/SourceKit/clangd/ClangLanguageServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func makeJSONRPCClangServer(client: MessageHandler, clangd: AbsolutePath, buildS
9898
let shim = try ClangLanguageServerShim(
9999
client: connectionToClient,
100100
clangd: connection,
101-
buildSystem: buildSettings ?? BuildSettingsProviderList()
101+
buildSystem: buildSettings ?? BuildSystemList()
102102
)
103103

104104
connectionToShim.start(handler: shim)

Sources/SourceKit/sourcekitd/SwiftLanguageServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func makeLocalSwiftServer(client: MessageHandler, sourcekitd: AbsolutePath, buil
576576
let server = try SwiftLanguageServer(
577577
client: connectionToClient,
578578
sourcekitd: sourcekitd,
579-
buildSystem: buildSettings ?? BuildSettingsProviderList()
579+
buildSystem: buildSettings ?? BuildSystemList()
580580
)
581581

582582
connectionToSK.start(handler: server)

0 commit comments

Comments
 (0)