Skip to content

Commit 81d570f

Browse files
Kapil Borledaviwil
authored andcommitted
Capitalize property names and other minor changes
1 parent 656a634 commit 81d570f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/PowerShellEditorServices.Protocol/LanguageServer/Completion.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class CompletionItem
9494

9595
public TextEdit[] AdditionalTextEdits { get; set; }
9696

97-
public Command Command { get; set; }
97+
public CommandType Command { get; set; }
9898

9999
/// <summary>
100100
/// Gets or sets a custom data field that allows the server to mark
@@ -109,8 +109,12 @@ public class CompletionItem
109109
/// Represents a reference to a command. Provides a title which will be used to
110110
/// represent a command in the UI and, optionally, an array of arguments which
111111
/// will be passed to the command handler function when invoked.
112+
///
113+
/// The name of the corresponding type in vscode-languageserver-node is Command
114+
/// but since .net does not allow a property name (Command) and its enclosing
115+
/// type name to be the same we change its name to CommandType.
112116
/// </summary>
113-
public class Command
117+
public class CommandType
114118
{
115119
/// <summary>
116120
/// Title of the command.
@@ -121,12 +125,12 @@ public class Command
121125
/// <summary>
122126
/// The identifier of the actual command handler.
123127
/// </summary>
124-
public string command { get; set; }
128+
public string Command { get; set; }
125129

126130
/// <summary>
127131
/// Arguments that the command handler should be invoked with.
128132
/// </summary>
129-
public object[] arguments { get; set; }
133+
public object[] Arguments { get; set; }
130134
}
131135
}
132136

src/PowerShellEditorServices.Protocol/LanguageServer/TextDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public class TextDocumentSaveRegistrationOptions : TextDocumentRegistrationOptio
197197
public class DidSaveTextDocumentParams
198198
{
199199
/// <summary>
200-
/// The document that was closed.
200+
/// The document that was saved.
201201
/// </summary>
202202
public VersionedTextDocumentIdentifier TextDocument { get; set; }
203203

0 commit comments

Comments
 (0)