Skip to content

Commit 61e6b06

Browse files
added new commit characters
1 parent 985cc3d commit 61e6b06

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Lsp/Models/CompletionItem.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ public class CompletionItem
7272
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
7373
public TextEditContainer AdditionalTextEdits { get; set; }
7474
/// <summary>
75+
/// An optional set of characters that when pressed while this completion is active will accept it first and
76+
/// then type that character. *Note* that all commit characters should have `length=1` and that superfluous
77+
/// characters will be ignored.
78+
/// </summary>
79+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
80+
public Container<string> CommitCharacters { get; set; }
81+
/// <summary>
7582
/// An optional command that is executed/// after* inserting this completion./// Note* that
7683
/// additional modifications to the current document should be described with the
7784
/// additionalTextEdits-property.
@@ -85,4 +92,4 @@ public class CompletionItem
8592
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
8693
public object Data { get; set; }
8794
}
88-
}
95+
}

0 commit comments

Comments
 (0)