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