Skip to content

Commit c614d6b

Browse files
committed
Public initializer
1 parent b7cc49b commit c614d6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/LanguageServerProtocol/Notifications/TextSynchronizationNotifications.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ public struct WillSaveTextDocumentNotification: TextDocumentNotification, Hashab
119119

120120
/// Whether this is user-initiated save, auto-saved, etc.
121121
public var reason: TextDocumentSaveReason
122+
123+
public init(textDocument: TextDocumentIdentifier, reason: TextDocumentSaveReason) {
124+
self.textDocument = textDocument
125+
self.reason = reason
126+
}
122127
}
123128

124129
/// Notification that the given document was saved.

0 commit comments

Comments
 (0)