return empty reply instead of ignoring targets request

This commit is contained in:
Richard Howell
2019-09-25 14:26:38 -07:00
parent 81c50db7e1
commit ab1ee4ea8c
3 changed files with 3 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ extension CompilationDatabaseBuildSystem: BuildSystem {
/// We don't support change watching.
public func unregisterForChangeNotifications(for: URL) {}
public func buildTargets(reply: @escaping ([BuildTarget]?) -> Void) { }
public func buildTargets(reply: @escaping ([BuildTarget]?) -> Void) { reply(nil) }
func database(for url: URL) -> CompilationDatabase? {
if let path = try? AbsolutePath(validating: url.path) {