IWorkspace.GetFileContextsForLanguageServicesAsync(String, CancellationToken) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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