Skip to content

Commit 428ab30

Browse files
committed
Add default value to DiagnosticRelatedInformation initializer
1 parent a06fe3d commit 428ab30

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)