Skip to content

Commit ed9fcb0

Browse files
committed
formatting and documentation
1 parent 58e562a commit ed9fcb0

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Sources/SourceKitLSP/Clang/ClangLanguageService.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,12 @@ extension ClangLanguageService {
622622
return try await forwardRequestToClangd(req)
623623
}
624624

625-
func openGeneratedInterface(document: DocumentURI, moduleName: String, groupName: String?, symbolUSR symbol: String?)
626-
async throws -> GeneratedInterfaceDetails?
627-
{
625+
func openGeneratedInterface(
626+
document: DocumentURI,
627+
moduleName: String,
628+
groupName: String?,
629+
symbolUSR symbol: String?
630+
) async throws -> GeneratedInterfaceDetails? {
628631
throw ResponseError.unknown("unsupported method")
629632
}
630633

Sources/SourceKitLSP/LanguageService.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public struct RenameLocation: Sendable {
7878

7979
/// The textual output of a module interface.
8080
public struct GeneratedInterfaceDetails: ResponseType, Hashable {
81-
8281
public var uri: DocumentURI
8382
public var position: Position?
8483

@@ -158,6 +157,14 @@ public protocol LanguageService: AnyObject, Sendable {
158157
func completion(_ req: CompletionRequest) async throws -> CompletionList
159158
func hover(_ req: HoverRequest) async throws -> HoverResponse?
160159
func symbolInfo(_ request: SymbolInfoRequest) async throws -> [SymbolDetails]
160+
161+
/// Request a generated interface of a module to display in the IDE.
162+
/// **(LSP Extension)**
163+
///
164+
/// - Parameter document: The document whose compiler arguments should be used to generate the interface.
165+
/// - Parameter moduleName: The module to generate an index for.
166+
/// - Parameter groupName: The module group name.
167+
/// - Parameter symbol: The symbol USR to search for in the generated module interface.
161168
func openGeneratedInterface(
162169
document: DocumentURI,
163170
moduleName: String,

0 commit comments

Comments
 (0)