@@ -111,41 +111,41 @@ public final class Workspace {
111
111
) async throws {
112
112
var buildSystem : BuildSystem ? = nil
113
113
114
- func buildSwiftPMWorkspace ( rootUrl: URL ) async -> SwiftPMWorkspace ? {
115
- return await SwiftPMWorkspace (
114
+ func createSwiftPMBuildSystem ( rootUrl: URL ) async -> SwiftPMBuildSystem ? {
115
+ return await SwiftPMBuildSystem (
116
116
url: rootUrl,
117
117
toolchainRegistry: toolchainRegistry,
118
118
buildSetup: buildSetup,
119
119
reloadPackageStatusCallback: reloadPackageStatusCallback
120
120
)
121
121
}
122
122
123
- func buildCompDBWorkspace ( rootPath: AbsolutePath ) -> CompilationDatabaseBuildSystem ? {
123
+ func createCompilationDatabaseBuildSystem ( rootPath: AbsolutePath ) -> CompilationDatabaseBuildSystem ? {
124
124
return CompilationDatabaseBuildSystem (
125
125
projectRoot: rootPath,
126
126
searchPaths: compilationDatabaseSearchPaths
127
127
)
128
128
}
129
129
130
- func buildBuildServerWorkspace ( rootPath: AbsolutePath ) async -> BuildServerBuildSystem ? {
130
+ func createBuildServerBuildSystem ( rootPath: AbsolutePath ) async -> BuildServerBuildSystem ? {
131
131
return await BuildServerBuildSystem ( projectRoot: rootPath, buildSetup: buildSetup)
132
132
}
133
133
134
134
if let rootUrl = rootUri. fileURL, let rootPath = try ? AbsolutePath ( validating: rootUrl. path) {
135
135
let defaultBuildSystem : BuildSystem ? =
136
136
switch buildSetup. defaultWorkspaceType {
137
- case . buildServer: await buildBuildServerWorkspace ( rootPath: rootPath)
138
- case . compilationDatabase: buildCompDBWorkspace ( rootPath: rootPath)
139
- case . swiftPM: await buildSwiftPMWorkspace ( rootUrl: rootUrl)
137
+ case . buildServer: await createBuildServerBuildSystem ( rootPath: rootPath)
138
+ case . compilationDatabase: createCompilationDatabaseBuildSystem ( rootPath: rootPath)
139
+ case . swiftPM: await createSwiftPMBuildSystem ( rootUrl: rootUrl)
140
140
case nil : nil
141
141
}
142
142
if let defaultBuildSystem {
143
143
buildSystem = defaultBuildSystem
144
- } else if let buildServer = await buildBuildServerWorkspace ( rootPath: rootPath) {
144
+ } else if let buildServer = await createBuildServerBuildSystem ( rootPath: rootPath) {
145
145
buildSystem = buildServer
146
- } else if let swiftpm = await buildSwiftPMWorkspace ( rootUrl: rootUrl) {
146
+ } else if let swiftpm = await createSwiftPMBuildSystem ( rootUrl: rootUrl) {
147
147
buildSystem = swiftpm
148
- } else if let compdb = buildCompDBWorkspace ( rootPath: rootPath) {
148
+ } else if let compdb = createCompilationDatabaseBuildSystem ( rootPath: rootPath) {
149
149
buildSystem = compdb
150
150
} else {
151
151
buildSystem = nil
0 commit comments