1 type derived from SymbolInformation
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Extensions\VSSymbolInformation.cs (1)
14
:
SymbolInformation
1 instantiation of SymbolInformation
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Symbols\SymbolInformationFactory.cs (1)
30
return new
SymbolInformation
()
49 references to SymbolInformation
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\Handlers\DocumentSymbols.cs (1)
14
public static Task<SumType<DocumentSymbol[],
SymbolInformation
[]>> GetDocumentSymbolsAsync(
Microsoft.CodeAnalysis.LanguageServer.Protocol (29)
Handler\Symbols\DocumentSymbolsHandler.cs (5)
27
internal sealed class DocumentSymbolsHandler : ILspServiceDocumentRequestHandler<RoslynDocumentSymbolParams, SumType<DocumentSymbol[],
SymbolInformation
[]>>
40
public Task<SumType<DocumentSymbol[],
SymbolInformation
[]>> HandleRequestAsync(
51
internal static async Task<SumType<DocumentSymbol[],
SymbolInformation
[]>> GetDocumentSymbolsAsync(
71
using var _ = ArrayBuilder<
SymbolInformation
>.GetInstance(out var symbols);
87
private static
SymbolInformation
? GetSymbolInformation(
Handler\Symbols\SymbolInformationFactory.cs (1)
12
public static
SymbolInformation
Create(string name, string? containerName, LSP.SymbolKind kind, LSP.Location location, Glyph glyph, bool supportsVSExtensions)
Handler\Symbols\WorkspaceSymbolsHandler.cs (6)
28
: ILspServiceRequestHandler<WorkspaceSymbolParams, SumType<
SymbolInformation
[], WorkspaceSymbol[]>?>
50
public async Task<SumType<
SymbolInformation
[], WorkspaceSymbol[]>?> HandleRequestAsync(WorkspaceSymbolParams request, RequestContext context, CancellationToken cancellationToken)
58
(
SymbolInformation
[] t) => new SumType<
SymbolInformation
[], WorkspaceSymbol[]>(t));
74
BufferedProgress<
SymbolInformation
[]> progress)
94
var
symbolInfo = SymbolInformationFactory.Create(
Protocol\DocumentSymbolParams.cs (2)
19
IPartialResultParams<SumType<
SymbolInformation
[], DocumentSymbol[]>>
41
public IProgress<SumType<
SymbolInformation
[], DocumentSymbol[]>>? PartialResultToken { get; set; }
Protocol\DocumentSymbolSetting.cs (1)
40
/// The client supports tags on <see cref="
SymbolInformation
"/>. Tags are supported on
Protocol\Extensions\Converters\VSExtensionUtilities.cs (1)
38
TryAddConverter<
SymbolInformation
, VSSymbolInformation>();
Protocol\Extensions\VSSymbolInformation.cs (1)
10
/// <see cref="VSSymbolInformation"/> extends <see cref="
SymbolInformation
"/> providing additional properties used by Visual Studio.
Protocol\Internal\Converters\VSInternalExtensionUtilities.cs (1)
47
AddOrReplaceConverter<
SymbolInformation
, VSInternalSymbolInformation>();
Protocol\Methods.Document.cs (2)
130
/// An array of <see cref="
SymbolInformation
"/>, which is a flat list of all symbols found in a given text document. Neither the symbol’s location range nor the symbol’s container name should be used to infer a hierarchy.
148
public static readonly LspRequest<DocumentSymbolParams, SumType<
SymbolInformation
[], DocumentSymbol[]>?> TextDocumentDocumentSymbol = new(TextDocumentDocumentSymbolName);
Protocol\Methods.Workspace.cs (1)
27
public static readonly LspRequest<WorkspaceSymbolParams, SumType<
SymbolInformation
[], WorkspaceSymbol[]>?> WorkspaceSymbol = new(WorkspaceSymbolName);
Protocol\SymbolInformation.cs (3)
19
internal class SymbolInformation : IEquatable<
SymbolInformation
>
108
return this.Equals(obj as
SymbolInformation
);
112
public bool Equals(
SymbolInformation
? other)
Protocol\SymbolSetting.cs (1)
28
/// The client supports tags on <see cref="
SymbolInformation
"/> and <see cref="WorkspaceSymbol"/>.
Protocol\SymbolTagSupport.cs (1)
10
/// Describes the tags supported by the client on <see cref="
SymbolInformation
"/> and <see cref="WorkspaceSymbol"/>.
Protocol\WorkspaceSymbol.cs (1)
54
/// <seealso cref="
SymbolInformation
.Location"/>
Protocol\WorkspaceSymbolParams.cs (2)
18
: IPartialResultParams<SumType<
SymbolInformation
[], WorkspaceSymbol[]>>, IWorkDoneProgressParams
32
public IProgress<SumType<
SymbolInformation
[], WorkspaceSymbol[]>>? PartialResultToken { get; set; }
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (19)
Symbols\DocumentSymbolsTests.cs (6)
89
LSP.
SymbolInformation
[] expected = [
96
var results = await RunGetDocumentSymbolsAsync<LSP.
SymbolInformation
[]>(testLspServer);
116
var results = await RunGetDocumentSymbolsAsync<LSP.
SymbolInformation
[]>(testLspServer).ConfigureAwait(false);
132
var results = await RunGetDocumentSymbolsAsync<LSP.
SymbolInformation
[]>(testLspServer).ConfigureAwait(false);
161
var results = await RunGetDocumentSymbolsAsync<LSP.
SymbolInformation
[]>(testLspServer).ConfigureAwait(false);
173
var results = await RunGetDocumentSymbolsAsync<LSP.
SymbolInformation
[]>(testLspServer);
Symbols\WorkspaceSymbolsTests.cs (13)
23
private static void AssertSetEquals(LSP.
SymbolInformation
[] expected, LSP.
SymbolInformation
[]? results)
48
var expected = new LSP.
SymbolInformation
[]
70
var expected = new LSP.
SymbolInformation
[]
75
using var progress = BufferedProgress.Create<LSP.SumType<LSP.
SymbolInformation
[], LSP.WorkspaceSymbol[]>>(null);
98
var expected = new LSP.
SymbolInformation
[]
123
var expected = new LSP.
SymbolInformation
[]
151
var expected = new LSP.
SymbolInformation
[]
186
var expected = new LSP.
SymbolInformation
[]
225
var expected = new LSP.
SymbolInformation
[]
234
private static Task<LSP.
SymbolInformation
[]?> RunGetWorkspaceSymbolsAsync(TestLspServer testLspServer, string query, IProgress<LSP.SumType<LSP.
SymbolInformation
[], LSP.WorkspaceSymbol[]>>? progress = null)
242
return testLspServer.ExecuteRequestAsync<LSP.WorkspaceSymbolParams, LSP.
SymbolInformation
[]>(LSP.Methods.WorkspaceSymbolName,