@@ -18,6 +18,7 @@ import Foundation
1818package import LanguageServerProtocol
1919import Markdown
2020import SKUtilities
21+ import SourceKitLSP
2122import SemanticIndex
2223
2324extension DocumentationLanguageService {
@@ -63,9 +64,13 @@ extension DocumentationLanguageService {
6364 ofDocCSymbolLink: symbolLink,
6465 fetchSymbolGraph: { location in
6566 guard let symbolWorkspace = try await workspaceForDocument ( uri: location. documentUri) ,
66- let languageService = try await languageService ( for: location. documentUri, . swift, in: symbolWorkspace)
67+ let languageService = await sourceKitLSPServer. languageService (
68+ for: location. documentUri,
69+ . swift,
70+ in: symbolWorkspace
71+ )
6772 else {
68- throw ResponseError . internalError ( " Unable to find Swift language service for \( location. documentUri) " )
73+ throw ResponseError . internalError ( " Unable to find language service for \( location. documentUri) " )
6974 }
7075 return try await languageService. symbolGraph ( forOnDiskContentsOf: location. documentUri, at: location)
7176 }
@@ -76,9 +81,13 @@ extension DocumentationLanguageService {
7681 let symbolDocumentUri = symbolOccurrence. location. documentUri
7782 guard
7883 let symbolWorkspace = try await workspaceForDocument ( uri: symbolDocumentUri) ,
79- let languageService = try await languageService ( for: symbolDocumentUri, . swift, in: symbolWorkspace)
84+ let languageService = await sourceKitLSPServer. languageService (
85+ for: symbolDocumentUri,
86+ . swift,
87+ in: symbolWorkspace
88+ )
8089 else {
81- throw ResponseError . internalError ( " Unable to find Swift language service for \( symbolDocumentUri) " )
90+ throw ResponseError . internalError ( " Unable to find language service for \( symbolDocumentUri) " )
8291 }
8392 let symbolGraph = try await languageService. symbolGraph (
8493 forOnDiskContentsOf: symbolDocumentUri,
0 commit comments