Skip to content

Commit f9f219c

Browse files
authored
Merge pull request swiftlang#249 from benlangmuir/rel-def
Add default value to DiagnosticRelatedInformation initializer
2 parents a06fe3d + 428ab30 commit f9f219c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LanguageServerProtocol/SupportTypes/Diagnostic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public struct DiagnosticRelatedInformation: Codable, Hashable {
8181
/// **LSP Extension from clangd**.
8282
public var codeActions: [CodeAction]?
8383

84-
public init(location: Location, message: String, codeActions: [CodeAction]?) {
84+
public init(location: Location, message: String, codeActions: [CodeAction]? = nil) {
8585
self.location = location
8686
self.message = message
8787
self.codeActions = codeActions

0 commit comments

Comments
 (0)