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:
Alex Hoppen
2024-04-15 17:05:03 -07:00
parent 17c0a44ac5
commit a799da39aa
25 changed files with 1320 additions and 124 deletions

View File

@@ -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 {