Provides context for text markers in the core editor.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Thetype exposes the following members.
For each text marker type in the core editor, the environment creates a separate object (text marker). Whenever the cursor in an editor is over a text marker, the environment queries to see if the interface is implemented. If this interface is implemented, then the environment calls UpdateContextForMarker and passes a pointer to the context bag for the editor. Write your implementation of this method so that when called by the environment, you update the context for the text marker in the editor's context bag. For more information, see IVsUserContext::AddAttribute.
When the editor's cursor moves off of the text marker, the environment calls UpdateContextForMarker and passes you a pointer to the editor's context bag to allow you to remove the context for the last text marker. For more information, see RemoveAttribute.
The Visual Studio core editor provides the text marker in addition to the keyword at the cursor during updates.
Use the following steps to add context for text markers to the Dynamic Help window:
When you create the text marker, pass in a text marker client (IVsTextMarkerClient) that also implements IVsTextMarkerContextProvider.
Your implementation is called twice every time context is to be added, once when the context is added and once more when the context is to be removed.Notes to Implementers
Implemented by the language service to provide context for text markers (for example, compiler errors) in the Visual Studio core editor. The core editor calls QueryInterface on IVsTextLayerMarker to return a pointer to .Notes to Callers
Called by the Visual Studio core editor to indicate that context is updating.