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:
@@ -12,6 +12,7 @@
|
||||
|
||||
import SKSupport
|
||||
import TSCBasic
|
||||
import BuildServerProtocol
|
||||
import LanguageServerProtocol
|
||||
|
||||
/// A `BuildSystem` based on loading clang-compatible compilation database(s).
|
||||
@@ -59,6 +60,8 @@ extension CompilationDatabaseBuildSystem: BuildSystem {
|
||||
/// We don't support change watching.
|
||||
public func unregisterForChangeNotifications(for: URL) {}
|
||||
|
||||
public func buildTargets(reply: @escaping ([BuildTarget]?) -> Void) { }
|
||||
|
||||
func database(for url: URL) -> CompilationDatabase? {
|
||||
if let path = try? AbsolutePath(validating: url.path) {
|
||||
return database(for: path)
|
||||
|
||||
Reference in New Issue
Block a user