Skip to content

Commit 5e2fc40

Browse files
committed
Report whether sourcekit-lsp supports the workspace/tests and textDocument/tests requests
Fixes #1098 rdar://123771703
1 parent 331f16d commit 5e2fc40

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Sources/LanguageServerProtocol/Requests/DocumentTestsRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
///
1515
/// **(LSP Extension)**
1616
public struct DocumentTestsRequest: TextDocumentRequest, Hashable {
17-
public static let method: String = "document/tests"
17+
public static let method: String = "textDocument/tests"
1818
public typealias Response = [WorkspaceSymbolItem]?
1919

2020
public var textDocument: TextDocumentIdentifier

Sources/SourceKitLSP/SourceKitServer.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,11 @@ extension SourceKitServer {
12881288
callHierarchyProvider: .bool(true),
12891289
typeHierarchyProvider: .bool(true),
12901290
semanticTokensProvider: semanticTokensOptions,
1291-
inlayHintProvider: inlayHintOptions
1291+
inlayHintProvider: inlayHintOptions,
1292+
experimental: .dictionary([
1293+
"workspace/tests": .dictionary(["version": .int(1)]),
1294+
"textDocument/tests": .dictionary(["version": .int(1)]),
1295+
])
12921296
)
12931297
}
12941298

0 commit comments

Comments
 (0)