Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit c3a1626

Browse files
committed
Support Spec v3.9.0
1 parent 5acb823 commit c3a1626

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

LanguageServer/Parameters/General/CompletionItemCapabilities.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// For <c>initialize</c>
55
/// </summary>
6-
/// <seealso>Spec 3.7.2</seealso>
6+
/// <seealso>Spec 3.9.0</seealso>
77
public class CompletionItemCapabilities
88
{
99
/// <summary>
@@ -39,5 +39,11 @@ public class CompletionItemCapabilities
3939
/// </summary>
4040
/// <seealso>Spec 3.7.2</seealso>
4141
public bool? deprecatedSupport { get; set; }
42+
43+
/// <summary>
44+
/// Client supports the preselect property on a completion item.
45+
/// </summary>
46+
/// <seealso>Spec 3.9.0</seealso>
47+
public bool? preselectSupport { get; set; }
4248
}
4349
}

LanguageServer/Parameters/TextDocument/CompletionItem.cs

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace LanguageServer.Parameters.TextDocument
77
/// <summary>
88
/// For <c>textDocument/completion</c> and <c>completionItem/resolve</c>
99
/// </summary>
10-
/// <seealso>Spec 3.7.2</seealso>
10+
/// <seealso>Spec 3.9.0</seealso>
1111
public class CompletionItem
1212
{
1313
/// <summary>
@@ -38,6 +38,16 @@ public class CompletionItem
3838
/// <seealso>Spec 3.7.2</seealso>
3939
public bool? deprecated { get; set; }
4040

41+
/// <summary>
42+
/// Select this item when showing.
43+
/// </summary>
44+
/// <remarks>
45+
/// Note that only one completion item can be selected and that the tool / client decides which item that is.
46+
/// The rule is that the <b>first</b> item of those that match best is selected.
47+
/// </remarks>
48+
/// <seealso>Spec 3.9.0</seealso>
49+
public bool? preselect { get; set; }
50+
4151
/// <summary>
4252
/// A string that should be used when comparing this item with other items.
4353
/// </summary>

0 commit comments

Comments
 (0)