Share via


ILightBulbBroker Interface

Definition

Important

This API is not CLS-compliant.

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

public interface class ILightBulbBroker
public interface class ILightBulbBroker
__interface ILightBulbBroker
[System.CLSCompliant(false)]
public interface ILightBulbBroker
public interface ILightBulbBroker
[<System.CLSCompliant(false)>]
type ILightBulbBroker = interface
type ILightBulbBroker = interface
Public Interface ILightBulbBroker
Derived
Attributes

Remarks

This is a MEF component, and should be imported as follows: [Import] ILightBulbBroker lightBulbBroker = null;

Methods

CanCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint)

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

CanCreateSession(ISuggestedActionCategorySet, ITextView)

Determines whether a ILightBulbSession can be created 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.

CreateSession(ISuggestedActionCategorySet, ITextView)
Obsolete.

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

DismissSession(ITextView)

Dismisses an active ILightBulbSession for a particular ITextView.

GetSession(ITextView)

Gets the active ILightBulbSession for the specified ITextView.

GetSuggestedActionsSources(ITextView, ITextBuffer)

Gets a list of ISuggestedActionsSources for given ITextView and ITextBuffer.

HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with the current caret position in a given ITextView.

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

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

IsLightBulbSessionActive(ITextView)

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

IsSupportedContentType(IContentType)

Determines whether there is at least one ISuggestedActionsSourceProvider supporting given content type.

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

Tries to create and expand ILightBulbSession for the specified ITextView.

TryExpandSession(ISuggestedActionCategorySet, ITextView)

Tries to create and expand ILightBulbSession for the specified ITextView. If the session already exists, this method expands it.

Applies to