Skip to content

Commit 050e7bc

Browse files
Kapil Borledaviwil
authored andcommitted
Add registration options for didChange notification
1 parent 4f39d7d commit 050e7bc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/PowerShellEditorServices.Protocol/LanguageServer/TextDocument.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,19 @@ public class DidSaveTextDocumentParams
211211
public class DidChangeTextDocumentNotification
212212
{
213213
public static readonly
214-
NotificationType<DidChangeTextDocumentParams, object> Type =
215-
NotificationType<DidChangeTextDocumentParams, object>.Create("textDocument/didChange");
214+
NotificationType<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions> Type =
215+
NotificationType<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions>.Create("textDocument/didChange");
216+
}
217+
218+
/// <summary>
219+
/// Describe options to be used when registered for text document change events.
220+
/// </summary>
221+
public class TextDocumentChangeRegistrationOptions : TextDocumentRegistrationOptions
222+
{
223+
/// <summary>
224+
/// How documents are synced to the server.
225+
/// </summary>
226+
public TextDocumentSyncKind SyncKind { get; set; }
216227
}
217228

218229
/// <summary>

0 commit comments

Comments
 (0)