mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Implement a syntactic workspace-wide test index
This workspace-wide syntactic test index is used for two purposes: - It is used for XCTests instead of the semantic index for files that have on-disk or in-memory modifications to files - It is uses for swift-testing tests, which are only discovered syntactically. rdar://119191037
This commit is contained in:
@@ -316,6 +316,17 @@ extension BuildServerBuildSystem: BuildSystem {
|
||||
|
||||
return .unhandled
|
||||
}
|
||||
|
||||
public func testFiles() async -> [DocumentURI] {
|
||||
// BuildServerBuildSystem does not support syntactic test discovery
|
||||
// (https://github.com/apple/sourcekit-lsp/issues/1173).
|
||||
return []
|
||||
}
|
||||
|
||||
public func addTestFilesDidChangeCallback(_ callback: @escaping () async -> Void) {
|
||||
// BuildServerBuildSystem does not support syntactic test discovery
|
||||
// (https://github.com/apple/sourcekit-lsp/issues/1173).
|
||||
}
|
||||
}
|
||||
|
||||
private func loadBuildServerConfig(path: AbsolutePath, fileSystem: FileSystem) throws -> BuildServerConfig {
|
||||
|
||||
Reference in New Issue
Block a user