Skip to content

Commit f6bec67

Browse files
add canImport check around SourceKitLSPServer.doccDocumentation(_:)
1 parent d1e73f5 commit f6bec67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,12 +1406,14 @@ extension SourceKitLSPServer {
14061406
return try await languageService.completion(req)
14071407
}
14081408

1409+
#if canImport(SwiftDocC)
14091410
func doccDocumentation(_ req: DoccDocumentationRequest) async throws -> DoccDocumentationResponse {
14101411
return try await documentationManager.convertDocumentation(
14111412
req.textDocument.uri,
14121413
at: req.position
14131414
)
14141415
}
1416+
#endif
14151417

14161418
func hover(
14171419
_ req: HoverRequest,

0 commit comments

Comments
 (0)