ILightBulbBroker Interface

Visual Studio 2015
 

Represents a LightBulb broker, which is globally responsible for managing ILightBulbSessions.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

[CLSCompliantAttribute(false)]
public interface ILightBulbBroker

NameDescription
System_CAPS_pubmethodCanCreateSession(ISuggestedActionCategorySet, ITextView)

Determines whether an ILightBulbSession can be created for a given ITextView with the current caret position as a trigger point.

System_CAPS_pubmethodCanCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint)

Determines whether an ILightBulbSession can be created for a given ITextView at a given trigger point.

System_CAPS_pubmethodCreateSession(ISuggestedActionCategorySet, ITextView)

Creates, but doesn't expand an ILightBulbSession for a given ITextView.

System_CAPS_pubmethodCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)

Creates but doesn't expand an ILightBulbSession for a given ITextView with the current caret position as a trigger point.

System_CAPS_pubmethodDismissSession(ITextView)

Dismisses an active < ILightBulbSession for the specified ITextView.

System_CAPS_pubmethodGetSession(ITextView)

Gets the active ILightBulbSession for the specified ITextView.

System_CAPS_pubmethodGetSuggestedActionsSources(ITextView, ITextBuffer)

Gets a list of ISuggestedActionsSources for given ITextView and ITextBuffer.

System_CAPS_pubmethodHasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with a given trigger point position and span in a given ITextView.

System_CAPS_pubmethodHasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)

System_CAPS_pubmethodIsLightBulbSessionActive(ITextView)

Determines whether or not an < ILightBulbSession is active over the specified ITextView.

System_CAPS_pubmethodIsSupportedContentType(IContentType)

Determines whether there is at least one ISuggestedActionsSourceProvider that supports the given content type.

System_CAPS_pubmethodTryExpandSession(ISuggestedActionCategorySet, ITextView)

Tries to create and expand an ILightBulbSession for the specified ITextView.

System_CAPS_pubmethodTryExpandSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)

Tries to create and expand ILightBulbSession for the specified ITextView.

This is a MEF component, and should be imported as follows:

[Import]
ILightBulbBroker lightBulbBroker = null;
Return to top
Show: