85 references to CompletionItemKind
Microsoft.CodeAnalysis.LanguageServer.Protocol (85)
Extensions\ProtocolConversions.cs (68)
53
public static readonly ImmutableDictionary<string, ImmutableArray<LSP.
CompletionItemKind
>> RoslynTagToCompletionItemKinds = new Dictionary<string, ImmutableArray<LSP.
CompletionItemKind
>>()
55
{ WellKnownTags.Public, ImmutableArray.Create(LSP.
CompletionItemKind
.Keyword) },
56
{ WellKnownTags.Protected, ImmutableArray.Create(LSP.
CompletionItemKind
.Keyword) },
57
{ WellKnownTags.Private, ImmutableArray.Create(LSP.
CompletionItemKind
.Keyword) },
58
{ WellKnownTags.Internal, ImmutableArray.Create(LSP.
CompletionItemKind
.Keyword) },
59
{ WellKnownTags.File, ImmutableArray.Create(LSP.
CompletionItemKind
.File) },
60
{ WellKnownTags.Project, ImmutableArray.Create(LSP.
CompletionItemKind
.File) },
61
{ WellKnownTags.Folder, ImmutableArray.Create(LSP.
CompletionItemKind
.Folder) },
62
{ WellKnownTags.Assembly, ImmutableArray.Create(LSP.
CompletionItemKind
.File) },
63
{ WellKnownTags.Class, ImmutableArray.Create(LSP.
CompletionItemKind
.Class) },
64
{ WellKnownTags.Constant, ImmutableArray.Create(LSP.
CompletionItemKind
.Constant) },
65
{ WellKnownTags.Delegate, ImmutableArray.Create(LSP.
CompletionItemKind
.Class, LSP.
CompletionItemKind
.Delegate) },
66
{ WellKnownTags.Enum, ImmutableArray.Create(LSP.
CompletionItemKind
.Enum) },
67
{ WellKnownTags.EnumMember, ImmutableArray.Create(LSP.
CompletionItemKind
.EnumMember) },
68
{ WellKnownTags.Event, ImmutableArray.Create(LSP.
CompletionItemKind
.Event) },
69
{ WellKnownTags.ExtensionMethod, ImmutableArray.Create(LSP.
CompletionItemKind
.Method, LSP.
CompletionItemKind
.ExtensionMethod) },
70
{ WellKnownTags.Field, ImmutableArray.Create(LSP.
CompletionItemKind
.Field) },
71
{ WellKnownTags.Interface, ImmutableArray.Create(LSP.
CompletionItemKind
.Interface) },
72
{ WellKnownTags.Intrinsic, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) },
73
{ WellKnownTags.Keyword, ImmutableArray.Create(LSP.
CompletionItemKind
.Keyword) },
74
{ WellKnownTags.Label, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) },
75
{ WellKnownTags.Local, ImmutableArray.Create(LSP.
CompletionItemKind
.Variable) },
76
{ WellKnownTags.Namespace, ImmutableArray.Create(LSP.
CompletionItemKind
.Module, LSP.
CompletionItemKind
.Namespace) },
77
{ WellKnownTags.Method, ImmutableArray.Create(LSP.
CompletionItemKind
.Method) },
78
{ WellKnownTags.Module, ImmutableArray.Create(LSP.
CompletionItemKind
.Module) },
79
{ WellKnownTags.Operator, ImmutableArray.Create(LSP.
CompletionItemKind
.Operator) },
80
{ WellKnownTags.Parameter, ImmutableArray.Create(LSP.
CompletionItemKind
.Value) },
81
{ WellKnownTags.Property, ImmutableArray.Create(LSP.
CompletionItemKind
.Property) },
82
{ WellKnownTags.RangeVariable, ImmutableArray.Create(LSP.
CompletionItemKind
.Variable) },
83
{ WellKnownTags.Reference, ImmutableArray.Create(LSP.
CompletionItemKind
.Reference) },
84
{ WellKnownTags.Structure, ImmutableArray.Create(LSP.
CompletionItemKind
.Struct) },
85
{ WellKnownTags.TypeParameter, ImmutableArray.Create(LSP.
CompletionItemKind
.TypeParameter) },
86
{ WellKnownTags.Snippet, ImmutableArray.Create(LSP.
CompletionItemKind
.Snippet) },
87
{ WellKnownTags.Error, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) },
88
{ WellKnownTags.Warning, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) },
89
{ WellKnownTags.StatusInformation, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) },
90
{ WellKnownTags.AddReference, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) },
91
{ WellKnownTags.NuGet, ImmutableArray.Create(LSP.
CompletionItemKind
.Text) }
672
public static Glyph CompletionItemKindToGlyph(LSP.
CompletionItemKind
kind)
676
case LSP.
CompletionItemKind
.Text:
678
case LSP.
CompletionItemKind
.Method:
679
case LSP.
CompletionItemKind
.Constructor:
680
case LSP.
CompletionItemKind
.Function: // We don't use Function, but map it just in case. It has the same icon as Method in VS and VS Code
682
case LSP.
CompletionItemKind
.Field:
684
case LSP.
CompletionItemKind
.Variable:
685
case LSP.
CompletionItemKind
.Unit:
686
case LSP.
CompletionItemKind
.Value:
688
case LSP.
CompletionItemKind
.Class:
690
case LSP.
CompletionItemKind
.Interface:
692
case LSP.
CompletionItemKind
.Module:
694
case LSP.
CompletionItemKind
.Property:
696
case LSP.
CompletionItemKind
.Enum:
698
case LSP.
CompletionItemKind
.Keyword:
700
case LSP.
CompletionItemKind
.Snippet:
702
case LSP.
CompletionItemKind
.Color:
704
case LSP.
CompletionItemKind
.File:
706
case LSP.
CompletionItemKind
.Reference:
708
case LSP.
CompletionItemKind
.Folder:
710
case LSP.
CompletionItemKind
.EnumMember:
712
case LSP.
CompletionItemKind
.Constant:
714
case LSP.
CompletionItemKind
.Struct:
716
case LSP.
CompletionItemKind
.Event:
718
case LSP.
CompletionItemKind
.Operator:
720
case LSP.
CompletionItemKind
.TypeParameter:
Handler\Completion\CompletionCapabilityHelper.cs (2)
29
public ISet<
CompletionItemKind
> SupportedItemKinds { get; }
46
SupportedItemKinds = completionSetting?.CompletionItemKind?.ValueSet?.ToSet() ?? SpecializedCollections.EmptySet<
CompletionItemKind
>();
Handler\Completion\CompletionResultFactory.cs (5)
171
static LSP.
CompletionItemKind
GetCompletionKind(
173
ISet<LSP.
CompletionItemKind
> supportedClientKinds)
180
var
kind = completionItemKinds[0];
185
var
preferredKind = completionItemKinds[i];
194
return LSP.
CompletionItemKind
.Text;
Protocol\CompletionItem.cs (3)
58
[DefaultValue(
CompletionItemKind
.None)]
60
public
CompletionItemKind
Kind
64
} =
CompletionItemKind
.None;
Protocol\CompletionItemKindSetting.cs (5)
10
/// Describes the <see cref="
CompletionItemKind
"/> values supported by the client
18
/// Gets or sets the <see cref="
CompletionItemKind
"/> values that the client supports.
27
/// kinds from <see cref="
CompletionItemKind
.Text"/> to <see cref="
CompletionItemKind
.Reference"/>
33
public
CompletionItemKind
[]? ValueSet
Protocol\CompletionSetting.cs (1)
29
/// The client supports the following <see cref="Protocol.
CompletionItemKind
"/> values.
Protocol\Internal\VSInternalSelectedCompletionInfo.cs (1)
35
public
CompletionItemKind
CompletionKind { get; set; }