Skip to content

Commit 5a7a910

Browse files
authored
Merge pull request #995 from krzyzanowskim/marcin/missing-initializer
WillSaveTextDocumentNotification public initializer
2 parents d931806 + c614d6b commit 5a7a910

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)