85 references to CompletionItemKind
Microsoft.CodeAnalysis.LanguageServer.Protocol (85)
Extensions\ProtocolConversions.cs (68)
53public 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.Variable) }, 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) } 672public static Glyph CompletionItemKindToGlyph(LSP.CompletionItemKind kind) 676case LSP.CompletionItemKind.Text: 678case LSP.CompletionItemKind.Method: 679case LSP.CompletionItemKind.Constructor: 680case 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 682case LSP.CompletionItemKind.Field: 684case LSP.CompletionItemKind.Variable: 685case LSP.CompletionItemKind.Unit: 686case LSP.CompletionItemKind.Value: 688case LSP.CompletionItemKind.Class: 690case LSP.CompletionItemKind.Interface: 692case LSP.CompletionItemKind.Module: 694case LSP.CompletionItemKind.Property: 696case LSP.CompletionItemKind.Enum: 698case LSP.CompletionItemKind.Keyword: 700case LSP.CompletionItemKind.Snippet: 702case LSP.CompletionItemKind.Color: 704case LSP.CompletionItemKind.File: 706case LSP.CompletionItemKind.Reference: 708case LSP.CompletionItemKind.Folder: 710case LSP.CompletionItemKind.EnumMember: 712case LSP.CompletionItemKind.Constant: 714case LSP.CompletionItemKind.Struct: 716case LSP.CompletionItemKind.Event: 718case LSP.CompletionItemKind.Operator: 720case LSP.CompletionItemKind.TypeParameter:
Handler\Completion\CompletionCapabilityHelper.cs (2)
29public ISet<CompletionItemKind> SupportedItemKinds { get; } 46SupportedItemKinds = completionSetting?.CompletionItemKind?.ValueSet?.ToSet() ?? SpecializedCollections.EmptySet<CompletionItemKind>();
Handler\Completion\CompletionResultFactory.cs (5)
171static LSP.CompletionItemKind GetCompletionKind( 173ISet<LSP.CompletionItemKind> supportedClientKinds) 180var kind = completionItemKinds[0]; 185var preferredKind = completionItemKinds[i]; 194return LSP.CompletionItemKind.Text;
Protocol\CompletionItem.cs (3)
58[DefaultValue(CompletionItemKind.None)] 60public 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"/> 33public CompletionItemKind[]? ValueSet
Protocol\CompletionSetting.cs (1)
29/// The client supports the following <see cref="Protocol.CompletionItemKind"/> values.
Protocol\Internal\VSInternalSelectedCompletionInfo.cs (1)
35public CompletionItemKind CompletionKind { get; set; }