Skip to content

Commit 93b9a7d

Browse files
Kapil Borledaviwil
authored andcommitted
Fix ClientCapabilities and related types
1 parent c16dbbf commit 93b9a7d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/PowerShellEditorServices.Protocol/LanguageServer/DynamicRegistrationCapability.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class DynamicRegistrationCapability
88
/// <summary>
99
/// Whether the capability supports dynamic registration.
1010
/// </summary>
11-
public bool DynamicRegistration { get; set; }
11+
public bool? DynamicRegistration { get; set; }
1212
}
1313
}

src/PowerShellEditorServices.Protocol/LanguageServer/TextDocumentClientCapabilities.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class CompletionCapabilities : DynamicRegistrationCapability
8787
/// The client supports the following `CompletionItem` specific capabilities.
8888
/// </summary>
8989
/// <returns></returns>
90-
CompletionItemCapabilities CompletionItem { get; set; }
90+
public CompletionItemCapabilities CompletionItem { get; set; }
9191
}
9292

9393
/// <summary>
@@ -103,7 +103,7 @@ public class CompletionItemCapabilities
103103
/// the end of the snippet. Placeholders with equal identifiers are linked,
104104
/// that is typing in one will update others too.
105105
/// </summary>
106-
bool SnippetSupport { get; set; }
106+
public bool? SnippetSupport { get; set; }
107107
}
108108

109109
/// <summary>
@@ -114,17 +114,17 @@ public class SynchronizationCapabilities : DynamicRegistrationCapability
114114
/// <summary>
115115
/// The client supports sending will save notifications.
116116
/// </summary>
117-
bool WillSave { get; set; }
117+
public bool? WillSave { get; set; }
118118

119119
/// <summary>
120120
/// The client supports sending a will save request and waits for a response
121121
/// providing text edits which will be applied to the document before it is save.
122122
/// </summary>
123-
bool WillSaveWaitUntil { get; set; }
123+
public bool? WillSaveWaitUntil { get; set; }
124124

125125
/// <summary>
126126
/// The client supports did save notifications.
127127
/// </summary>
128-
bool DidSave { get; set; }
128+
public bool? DidSave { get; set; }
129129
}
130130
}

src/PowerShellEditorServices.Protocol/LanguageServer/WorkspaceClientCapabilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class WorkspaceClientCapabilities
66
/// The client supports applying batch edits to the workspace by
77
/// by supporting the request `workspace/applyEdit'
88
/// /// </summary>
9-
bool ApplyEdit { get; set; }
9+
bool? ApplyEdit { get; set; }
1010

1111
/// <summary>
1212
/// Capabilities specific to `WorkspaceEdit`.
@@ -42,6 +42,6 @@ public class WorkspaceEditCapabilities
4242
/// <summary>
4343
/// The client supports versioned document changes in `WorkspaceEdit`
4444
/// </summary>
45-
bool DocumentChanges { get; set; }
45+
bool? DocumentChanges { get; set; }
4646
}
4747
}

0 commit comments

Comments
 (0)