mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
use LSPResult instead of optional
This commit is contained in:
@@ -60,7 +60,9 @@ extension CompilationDatabaseBuildSystem: BuildSystem {
|
||||
/// We don't support change watching.
|
||||
public func unregisterForChangeNotifications(for: URL) {}
|
||||
|
||||
public func buildTargets(reply: @escaping ([BuildTarget]?) -> Void) { reply(nil) }
|
||||
public func buildTargets(reply: @escaping (LSPResult<[BuildTarget]>) -> Void) {
|
||||
reply(.failure(buildTargetsNotSupported))
|
||||
}
|
||||
|
||||
func database(for url: URL) -> CompilationDatabase? {
|
||||
if let path = try? AbsolutePath(validating: url.path) {
|
||||
|
||||
Reference in New Issue
Block a user