IFileContextProvider Interface
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.
Offers services to discover contexts defined in source files.
public interface class IFileContextProvider
public interface class IFileContextProvider
__interface IFileContextProvider
public interface IFileContextProvider
type IFileContextProvider = interface
Public Interface IFileContextProvider
Remarks
An implementing type should export this interface using the ExportFileContextProviderAttribute.
Implementations should register contexts both for source files and outputs that may serve as inputs to other contexts. For example when a project B references project A, someone interested in initializing a language service for B may need to discover the context for A given A's primary output, which serves as an input for B.
Methods
GetContextsForFileAsync(String, CancellationToken) |
Finds contexts for a given file. |