ICompletionPresenterProvider.GetOrCreate(ITextView) Method

Definition

Returns instance of ICompletionPresenter that will host completion for given ITextView. Called on the UI thread.

public:
 Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::ICompletionPresenter ^ GetOrCreate(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.ICompletionPresenter GetOrCreate (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member GetOrCreate : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.ICompletionPresenter
Public Function GetOrCreate (textView As ITextView) As ICompletionPresenter

Parameters

textView
ITextView

Text view that will host the completion. Completion acts on buffers of this view.

Returns

Instance of ICompletionPresenter

Remarks

It is encouraged to reuse the UI over creating new UI each time this method is called.

Applies to