File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Sources/SourceKitLSP/Swift Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import DocCDocumentation
1616import Foundation
1717package import LanguageServerProtocol
1818import SemanticIndex
19+ import SKLogging
1920import SwiftExtensions
2021import SwiftSyntax
2122
@@ -67,12 +68,14 @@ extension SwiftLanguageService {
6768 throw ResponseError . internalError ( " Unable to retrieve symbol graph for the document " )
6869 }
6970 // Locate the documentation extension and include it in the request if one exists
70- let markupExtensionFile = try ? await findMarkupExtensionFile (
71- workspace: workspace,
72- documentationManager: documentationManager,
73- catalogURL: catalogURL,
74- for: symbolUSR
75- )
71+ let markupExtensionFile = await orLog ( " Finding markup extension file for symbol \( symbolUSR) " ) {
72+ try await findMarkupExtensionFile (
73+ workspace: workspace,
74+ documentationManager: documentationManager,
75+ catalogURL: catalogURL,
76+ for: symbolUSR
77+ )
78+ }
7679 return try await documentationManager. renderDocCDocumentation (
7780 symbolUSR: symbolUSR,
7881 symbolGraph: symbolGraph,
You can’t perform that action at this time.
0 commit comments