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

Commit

Permalink
Merge branch 'feature/v3_9_0'
Browse files Browse the repository at this point in the history
  • Loading branch information
matarillo committed Sep 2, 2018
2 parents 5acb823 + c3a1626 commit c9131c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// For <c>initialize</c>
/// </summary>
/// <seealso>Spec 3.7.2</seealso>
/// <seealso>Spec 3.9.0</seealso>
public class CompletionItemCapabilities
{
/// <summary>
Expand Down Expand Up @@ -39,5 +39,11 @@ public class CompletionItemCapabilities
/// </summary>
/// <seealso>Spec 3.7.2</seealso>
public bool? deprecatedSupport { get; set; }

/// <summary>
/// Client supports the preselect property on a completion item.
/// </summary>
/// <seealso>Spec 3.9.0</seealso>
public bool? preselectSupport { get; set; }
}
}
12 changes: 11 additions & 1 deletion LanguageServer/Parameters/TextDocument/CompletionItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace LanguageServer.Parameters.TextDocument
/// <summary>
/// For <c>textDocument/completion</c> and <c>completionItem/resolve</c>
/// </summary>
/// <seealso>Spec 3.7.2</seealso>
/// <seealso>Spec 3.9.0</seealso>
public class CompletionItem
{
/// <summary>
Expand Down Expand Up @@ -38,6 +38,16 @@ public class CompletionItem
/// <seealso>Spec 3.7.2</seealso>
public bool? deprecated { get; set; }

/// <summary>
/// Select this item when showing.
/// </summary>
/// <remarks>
/// Note that only one completion item can be selected and that the tool / client decides which item that is.
/// The rule is that the <b>first</b> item of those that match best is selected.
/// </remarks>
/// <seealso>Spec 3.9.0</seealso>
public bool? preselect { get; set; }

/// <summary>
/// A string that should be used when comparing this item with other items.
/// </summary>
Expand Down

0 comments on commit c9131c7

Please sign in to comment.