File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/PowerShellEditorServices.Protocol/LanguageServer Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public class CompletionItem
94
94
95
95
public TextEdit [ ] AdditionalTextEdits { get ; set ; }
96
96
97
- public Command Command { get ; set ; }
97
+ public CommandType Command { get ; set ; }
98
98
99
99
/// <summary>
100
100
/// Gets or sets a custom data field that allows the server to mark
@@ -109,8 +109,12 @@ public class CompletionItem
109
109
/// Represents a reference to a command. Provides a title which will be used to
110
110
/// represent a command in the UI and, optionally, an array of arguments which
111
111
/// 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.
112
116
/// </summary>
113
- public class Command
117
+ public class CommandType
114
118
{
115
119
/// <summary>
116
120
/// Title of the command.
@@ -121,12 +125,12 @@ public class Command
121
125
/// <summary>
122
126
/// The identifier of the actual command handler.
123
127
/// </summary>
124
- public string command { get ; set ; }
128
+ public string Command { get ; set ; }
125
129
126
130
/// <summary>
127
131
/// Arguments that the command handler should be invoked with.
128
132
/// </summary>
129
- public object [ ] arguments { get ; set ; }
133
+ public object [ ] Arguments { get ; set ; }
130
134
}
131
135
}
132
136
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ public class TextDocumentSaveRegistrationOptions : TextDocumentRegistrationOptio
197
197
public class DidSaveTextDocumentParams
198
198
{
199
199
/// <summary>
200
- /// The document that was closed .
200
+ /// The document that was saved .
201
201
/// </summary>
202
202
public VersionedTextDocumentIdentifier TextDocument { get ; set ; }
203
203
You can’t perform that action at this time.
0 commit comments