Skip to content

Commit f509987

Browse files
author
Wang Lun
committed
drop unnecessary change of sourcekitdDocumentName
1 parent d0e544e commit f509987

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Sources/SourceKitLSP/Swift/OpenInterface.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,10 @@ extension SwiftLanguageService {
2121
groupName: String?,
2222
symbolUSR symbol: String?
2323
) async throws -> GeneratedInterfaceDetails? {
24-
// Generate a deterministic document name based on module name and group name
25-
// This ensures we reuse the same interface for the same module/group combination
26-
let documentName = if let groupName {
27-
"\(moduleName)-\(groupName.replacingOccurrences(of: "/", with: "-"))"
28-
} else {
29-
moduleName
30-
}
31-
3224
let urlData = GeneratedInterfaceDocumentURLData(
3325
moduleName: moduleName,
3426
groupName: groupName,
35-
sourcekitdDocumentName: documentName,
27+
sourcekitdDocumentName: "\(moduleName)-\(UUID())",
3628
primaryFile: document
3729
)
3830
let position: Position? =

0 commit comments

Comments
 (0)