ISymbolService.FindSymbolDefinitionsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for symbol definitions that match a given query.
public System.Threading.Tasks.Task FindSymbolDefinitionsAsync (string query, IProgress<Microsoft.VisualStudio.Workspace.Indexing.SymbolDefinitionSearchResult> progress, System.Threading.CancellationToken cancellationToken = default, string currentDocument = default);
public System.Threading.Tasks.Task FindSymbolDefinitionsAsync (string query, IProgress<Microsoft.VisualStudio.Workspace.Indexing.SymbolDefinitionSearchResult> progress, System.Threading.CancellationToken cancellationToken = default, string? currentDocument = default);
abstract member FindSymbolDefinitionsAsync : string * IProgress<Microsoft.VisualStudio.Workspace.Indexing.SymbolDefinitionSearchResult> * System.Threading.CancellationToken * string -> System.Threading.Tasks.Task
Public Function FindSymbolDefinitionsAsync (query As String, progress As IProgress(Of SymbolDefinitionSearchResult), Optional cancellationToken As CancellationToken = Nothing, Optional currentDocument As String = Nothing) As Task
Parameters
- query
- String
A leading substring of the symbol to find.
- progress
- IProgress<SymbolDefinitionSearchResult>
Receives
- cancellationToken
- CancellationToken
A token that may cancel the search.
- currentDocument
- String
Optional current document path.
Returns
A task whose completion indicates the search is complete.