4 instantiations of ClassifiedTextElement
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\References\FindUsagesLSPContext.cs (1)
312return new ClassifiedTextElement([.. classifiedTextRuns]);
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (1)
24return new ClassifiedTextElement(objects);
Protocol\Internal\Text\ClassifiedTextElement.cs (2)
34return new ClassifiedTextElement(new ClassifiedTextRun("text", text, navigationAction: navigationAction, tooltip: tooltip)); 40return new ClassifiedTextElement(new ClassifiedTextRun("text", text));
35 references to ClassifiedTextElement
Microsoft.CodeAnalysis.LanguageServer.Protocol (35)
Extensions\Extensions.cs (2)
237public static ClassifiedTextElement GetClassifiedText(this DefinitionItem definition) 305public static ClassifiedTextElement ToLSPElement(this QuickInfoClassifiedTextElement element)
Extensions\ProtocolConversions.cs (1)
359DocumentSpan documentSpan, ClassifiedTextElement text, CancellationToken cancellationToken)
Handler\References\FindImplementationsHandler.cs (1)
59var text = definition.GetClassifiedText();
Handler\References\FindUsagesLSPContext.cs (6)
182ClassifiedTextElement? definitionText, 190var text = await ComputeTextAsync(definitionId, documentSpan, definitionText, isWrittenTo, cancellationToken).ConfigureAwait(false); 204ClassifiedTextElement text, 207ClassifiedTextElement? definitionText, 292private async Task<ClassifiedTextElement?> ComputeTextAsync( 295ClassifiedTextElement? definitionText,
Handler\SignatureHelp\SignatureHelpHandler.cs (1)
140private static ClassifiedTextElement GetSignatureClassifiedText(SignatureHelpItem item)
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (8)
12internal class ClassifiedTextElementConverter : JsonConverter<ClassifiedTextElement> 16public override ClassifiedTextElement Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 33case nameof(ClassifiedTextElement.Runs): 44if (reader.GetString() != nameof(ClassifiedTextElement)) 45throw new JsonException($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ClassifiedTextElement)}"); 57public override void Write(Utf8JsonWriter writer, ClassifiedTextElement value, JsonSerializerOptions options) 60writer.WritePropertyName(nameof(ClassifiedTextElement.Runs)); 69writer.WriteStringValue(nameof(ClassifiedTextElement));
Protocol\Internal\Converters\ObjectContentConverter.cs (4)
21/// <item><description><see cref="ClassifiedTextElement"/></description></item>, 60case nameof(ClassifiedTextElement): 102case ClassifiedTextElement: 103ClassifiedTextElementConverter.Instance.Write(writer, (ClassifiedTextElement)value, options);
Protocol\Internal\Text\ClassifiedTextElement.cs (2)
30public static ClassifiedTextElement CreateHyperlink(string text, string tooltip, Action navigationAction) 37public static ClassifiedTextElement CreatePlainText(string text)
Protocol\Internal\VSInternalCompletionItem.cs (1)
34public ClassifiedTextElement? Description { get; set; }
Protocol\Internal\VSInternalLocation.cs (2)
19/// Gets or sets the text value for a location reference. Must be of type <see cref="ImageElement"/> or <see cref="ContainerElement"/> or <see cref="ClassifiedTextElement"/> or <see cref="string"/>. 33if (value is ImageElement || value is ContainerElement || value is ClassifiedTextElement || value is string)
Protocol\Internal\VSInternalReferenceItem.cs (6)
53/// Must be of type <see cref="string"/>, <see cref="ClassifiedTextElement"/>, <see cref="ContainerElement"/> and <see cref="ImageElement"/>. 57/// embedded within <see cref="ClassifiedTextElement"/> should not define <see cref="ClassifiedTextRun.MarkerTagType"/>. 72(value is ImageElement || value is ContainerElement || value is ClassifiedTextElement || value is string)) 133/// Must be of type <see cref="ImageElement"/> or <see cref="ContainerElement"/> or <see cref="ClassifiedTextElement"/> or <see cref="string"/>. 139/// on <see cref="ClassifiedTextRun"/> embedded within <see cref="ClassifiedTextElement"/>. 160if (value is ImageElement || value is ContainerElement || value is ClassifiedTextElement || value is string)
Protocol\Internal\VSInternalSignatureInformation.cs (1)
21public ClassifiedTextElement? ColorizedLabel