ProjectManager.DocumentSymbols(DocumentSymbolParams) Method

Definition

Returns the SymbolInformation for each namespace declaration, type declaration, and function or operation declaration within the specified file.

public Microsoft.VisualStudio.LanguageServer.Protocol.SymbolInformation[]? DocumentSymbols (Microsoft.VisualStudio.LanguageServer.Protocol.DocumentSymbolParams? param);
member this.DocumentSymbols : Microsoft.VisualStudio.LanguageServer.Protocol.DocumentSymbolParams -> Microsoft.VisualStudio.LanguageServer.Protocol.SymbolInformation[]
Public Function DocumentSymbols (param As DocumentSymbolParams) As SymbolInformation()

Parameters

Returns

SymbolInformation[]

Remarks

Returns null if given uri is null or if the specified file is not listed as source file.

Fails silently without logging anything if an exception occurs upon evaluating the query (occasional failures are to be expected as the evaluation is a readonly query running in parallel to the ongoing processing).

Applies to