Skip to content

Commit 71aa252

Browse files
committed
Adjust the order of arguments in CompletionList.ctor.
1 parent 637f788 commit 71aa252

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

LanguageServer.VsCode/Contracts/Completion.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ public CompletionList()
6868

6969
}
7070

71-
public CompletionList(IEnumerable<CompletionItem> items) : this(false, items)
71+
public CompletionList(IEnumerable<CompletionItem> items) : this(items, false)
7272
{
7373
}
7474

75-
public CompletionList(bool isIncomplete, IEnumerable<CompletionItem> items)
75+
public CompletionList(IEnumerable<CompletionItem> items, bool isIncomplete)
7676
{
7777
IsIncomplete = isIncomplete;
7878
Items = items;
@@ -194,6 +194,13 @@ public CompletionItem(string label, CompletionItemKind kind, string detail, stri
194194
[JsonProperty]
195195
public IEnumerable<TextEdit> AdditionalTextEdits { get; set; }
196196

197+
/// <summary>
198+
/// An optional set of characters that when pressed while this completion is active will accept it first and
199+
/// then type that character.
200+
/// </summary>
201+
[JsonProperty]
202+
public IEnumerable<char> CommitCharacters { get; set; }
203+
197204
/// <summary>
198205
/// An optional command that is executed *after* inserting this completion. *Note* that
199206
/// additional modifications to the current document should be described with the

0 commit comments

Comments
 (0)