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