ILightBulbBroker2 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.
Important
This API is not CLS-compliant.
Represents a LightBulb broker, which is globally responsible for managing ILightBulbSession s.
public interface class ILightBulbBroker2 : Microsoft::VisualStudio::Language::Intellisense::ILightBulbBroker
[System.CLSCompliant(false)]
public interface ILightBulbBroker2 : Microsoft.VisualStudio.Language.Intellisense.ILightBulbBroker
public interface ILightBulbBroker2 : Microsoft.VisualStudio.Language.Intellisense.ILightBulbBroker
[<System.CLSCompliant(false)>]
type ILightBulbBroker2 = interface
interface ILightBulbBroker
type ILightBulbBroker2 = interface
interface ILightBulbBroker
Public Interface ILightBulbBroker2
Implements ILightBulbBroker
Attributes
Implements
This is a MEF component, and should be imported as follows: [Import] ILightBulbBroker2 lightBulbBroker = null;
Methods
CanCreateSession(ISuggestedActionCategorySet, ITextView)
Determines whether a ILightBulbSession can be created for a given ITextView
with current caret position as a trigger point.
(Inherited from ILightBulbBroker )
CanCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint)
Determines whether a ILightBulbSession can be created for a given ITextView
at given trigger point.
(Inherited from ILightBulbBroker )
CreateSession(ISuggestedActionCategorySet, ITextView)
Obsolete.
Creates, but doesn't expand a ILightBulbSession for a given ITextView with current caret position
as a trigger point.
(Inherited from ILightBulbBroker )
CreateSession(ISuggestedActionCategorySet, ITextView, ISuggestedActionCategorySet)
Creates, but doesn't expand an ILightBulbSession for a given ITextView with current caret position
as a trigger point.
CreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)
Obsolete.
Creates, but doesn't expand a ILightBulbSession for a given ITextView with current caret position
as a trigger point.
(Inherited from ILightBulbBroker )
CreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, ISuggestedActionCategorySet, Boolean)
Creates, but doesn't expand an ILightBulbSession for a given ITextView with current caret position
as a trigger point.
DismissSession(ITextView)
Dismisses an active ILightBulbSession for a particular ITextView .
(Inherited from ILightBulbBroker )
GetSession(ITextView)
Gets the active ILightBulbSession for the specified ITextView .
(Inherited from ILightBulbBroker )
GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)
Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.
GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)
Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.
GetSuggestedActionsSources(ITextView, ITextBuffer)
Gets a list of ISuggestedActionsSource s for given ITextView and ITextBuffer .
(Inherited from ILightBulbBroker )
HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)
Asynchronously determines whether any ISuggestedAction s are associated with the current caret
position in a given ITextView .
(Inherited from ILightBulbBroker )
HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)
Asynchronously determines whether any ISuggestedAction s are associated with a given trigger point
position and span in a given ITextView .
(Inherited from ILightBulbBroker )
IsLightBulbSessionActive(ITextView)
Determines whether or not an ILightBulbSession is active over the specified ITextView .
(Inherited from ILightBulbBroker )
IsSupportedContentType(IContentType)
Determines whether there is at least one ISuggestedActionsSourceProvider supporting
given content type.
(Inherited from ILightBulbBroker )
TryExpandSession(ISuggestedActionCategorySet, ITextView)
Tries to create and expand ILightBulbSession for the specified ITextView .
If the session already exists, this method expands it.
(Inherited from ILightBulbBroker )
TryExpandSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)
Tries to create and expand ILightBulbSession for the specified ITextView .
(Inherited from ILightBulbBroker )
Applies to