mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
add interface for fetching output paths
This commit is contained in:
@@ -194,6 +194,17 @@ extension BuildServerBuildSystem: BuildSystem {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func buildTargetOutputPaths(targets: [BuildTargetIdentifier], reply: @escaping ([OutputsItem]?) -> Void) {
|
||||
let req = BuildTargetOutputPaths(targets: targets)
|
||||
_ = self.buildServer?.send(req, queue: requestQueue) { result in
|
||||
if let items = result.success?.items { reply(items) }
|
||||
else {
|
||||
log("error fetching build target outputs: \(result)")
|
||||
reply(nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func loadBuildServerConfig(path: AbsolutePath, fileSystem: FileSystem) throws -> BuildServerConfig {
|
||||
|
||||
Reference in New Issue
Block a user