Dela via


IBabelProject Interface

Provides access to a project from a Babel language service.

IBabelProject : IDispatch

Methods in Vtable Order

The following table shows the methods of this interface.

Method

Description

IBabelProject::SearchFile Method

Searches for a file within the local project settings.

Remarks

Use this interface to obtain a full path to a specified file using project-specific search parameters.

Notes for Implementers

Visual Studio project types can implement this interface to provide support for searching for a filename based on project-specific settings. For example, a C++ project typically specifies a list of folders to search for include files. If that C++ project implements the IBabelProject interface, a Babel language service can call the IBabelProject::SearchFile Method to obtain a path to a file that was part of an #include statement. That included file can then be loaded with a call to the IBabelPackage::LoadScope Method. If you supply a custom project type along with your Babel language service, you should implement the IBabelProject interface on your project type. See How to: Add Import Chasing for more details on this process.

Notes for Callers

Retrieve a pointer to this interface by calling the IParseSink::GetProject Method project. Internally, the Babel package queries the IVsHierarchy interface of the associated project for the IBabelProject interface.

Requirements

Header: BabelService.idl

See Also

Concepts

How to: Add Import Chasing

Other Resources

Babel Interfaces