add the workspace/buildTargets request

This commit is contained in:
Richard Howell
2019-08-28 14:01:23 -07:00
parent 2e861f72d7
commit 81c50db7e1
14 changed files with 198 additions and 4 deletions

View File

@@ -173,6 +173,15 @@ extension BuildServerBuildSystem: BuildSystem {
return nil
}
public func buildTargets(reply: @escaping ([BuildTarget]?) -> Void) {
_ = self.buildServer?.send(BuildTargets(), queue: requestQueue) { result in
if let targets = result.success?.targets { reply(targets) }
else {
log("error fetching build targets: \(result)")
reply(nil)
}
}
}
}
private func loadBuildServerConfig(path: AbsolutePath, fileSystem: FileSystem) throws -> BuildServerConfig {