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:
@@ -19,18 +19,6 @@ import ToolchainRegistry
|
||||
import struct TSCBasic.AbsolutePath
|
||||
import struct TSCBasic.RelativePath
|
||||
|
||||
/// Defines how well a `BuildSystem` can handle a file with a given URI.
|
||||
package enum FileHandlingCapability: Comparable, Sendable {
|
||||
/// The build system can't handle the file at all
|
||||
case unhandled
|
||||
|
||||
/// The build system has fallback build settings for the file
|
||||
case fallback
|
||||
|
||||
/// The build system knows how to handle the file
|
||||
case handled
|
||||
}
|
||||
|
||||
package struct SourceFileInfo: Sendable {
|
||||
/// The URI of the source file.
|
||||
package let uri: DocumentURI
|
||||
@@ -172,8 +160,6 @@ package protocol BuiltInBuildSystem: AnyObject, Sendable {
|
||||
/// Called when files in the project change.
|
||||
func didChangeWatchedFiles(notification: BuildServerProtocol.DidChangeWatchedFilesNotification) async
|
||||
|
||||
func fileHandlingCapability(for uri: DocumentURI) async -> FileHandlingCapability
|
||||
|
||||
/// Returns the list of source files in the project.
|
||||
///
|
||||
/// Header files should not be considered as source files because they cannot be compiled.
|
||||
|
||||
Reference in New Issue
Block a user