mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Instead of having FileHandlingCapability for a source file, check if it belongs to any targets
This commit is contained in:
@@ -210,14 +210,6 @@ extension CompilationDatabaseBuildSystem: BuiltInBuildSystem {
|
||||
}
|
||||
}
|
||||
|
||||
package func fileHandlingCapability(for uri: DocumentURI) -> FileHandlingCapability {
|
||||
if database(for: uri) != nil {
|
||||
return .handled
|
||||
} else {
|
||||
return .unhandled
|
||||
}
|
||||
}
|
||||
|
||||
package func sourceFiles() async -> [SourceFileInfo] {
|
||||
guard let compdb else {
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user