mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
add the workspace/buildTargets request
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user