IWorkspace.GetFileContextsForLanguageServicesAsync(String, CancellationToken) Método

Definição

Retornar ILanguageServiceProvider correspondente para um caminho de contexto de arquivo

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Tuple<Lazy<Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProvider,Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProviderMetadata>,System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.FileContext>>>> GetFileContextsForLanguageServicesAsync (string filePath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContextsForLanguageServicesAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Lazy<Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProvider, Microsoft.VisualStudio.Workspace.Intellisense.ILanguageServiceProviderMetadata> * System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.FileContext>>>
Public Function GetFileContextsForLanguageServicesAsync (filePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of Tuple(Of Lazy(Of ILanguageServiceProvider, ILanguageServiceProviderMetadata), IReadOnlyCollection(Of FileContext))))

Parâmetros

filePath
String

Caminho absoluto do arquivo que fornecerá o contexto

cancellationToken
CancellationToken

Token de cancelamento

Retornos

Task<IReadOnlyList<Tuple<Lazy<ILanguageServiceProvider,ILanguageServiceProviderMetadata>,IReadOnlyCollection<FileContext>>>>

Coleção com serviços correspondidos com contextos de arquivo

Aplica-se a