Partilhar via


IAsyncCompletionBroker.IsCompletionSupported Method

Definition

Overloads

IsCompletionSupported(IContentType)

Returns whether there are any completion item sources available for given IContentType. In practice, availability of completion item sources also depends on the text view roles. See IsCompletionSupported(IContentType, ITextViewRoleSet).

IsCompletionSupported(IContentType, ITextViewRoleSet)

Returns whether there are any completion item sources available for given IContentType and ITextViewRoleSet. This method should be called prior to calling TriggerCompletion(ITextView, CompletionTrigger, SnapshotPoint, CancellationToken) to avoid traversal of the buffer graph in cases where completion would be unavailable.

IsCompletionSupported(IContentType)

Returns whether there are any completion item sources available for given IContentType. In practice, availability of completion item sources also depends on the text view roles. See IsCompletionSupported(IContentType, ITextViewRoleSet).

public:
 bool IsCompletionSupported(Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public bool IsCompletionSupported (Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member IsCompletionSupported : Microsoft.VisualStudio.Utilities.IContentType -> bool
Public Function IsCompletionSupported (contentType As IContentType) As Boolean

Parameters

contentType
IContentType

IContentType to check for available completion source exports

Returns

Applies to

IsCompletionSupported(IContentType, ITextViewRoleSet)

Returns whether there are any completion item sources available for given IContentType and ITextViewRoleSet. This method should be called prior to calling TriggerCompletion(ITextView, CompletionTrigger, SnapshotPoint, CancellationToken) to avoid traversal of the buffer graph in cases where completion would be unavailable.

public:
 bool IsCompletionSupported(Microsoft::VisualStudio::Utilities::IContentType ^ contentType, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles);
public bool IsCompletionSupported (Microsoft.VisualStudio.Utilities.IContentType contentType, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles);
abstract member IsCompletionSupported : Microsoft.VisualStudio.Utilities.IContentType * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet -> bool
Public Function IsCompletionSupported (contentType As IContentType, roles As ITextViewRoleSet) As Boolean

Parameters

contentType
IContentType

IContentType to check for available completion source exports

roles
ITextViewRoleSet

ITextView's ITextViewRoleSet which filters available completion source exports

Returns

Applies to