Partager via


FilteredCompletionModel Constructors

Definition

Overloads

FilteredCompletionModel(ImmutableArray<CompletionItemWithHighlight>, Int32)

Constructs FilteredCompletionModel without completion filters.

FilteredCompletionModel(ImmutableArray<CompletionItemWithHighlight>, Int32, ImmutableArray<CompletionFilterWithState>)

Constructs FilteredCompletionModel with completion filters.

FilteredCompletionModel(CompletionList<CompletionItemWithHighlight>, Int32, ImmutableArray<CompletionFilterWithState>, UpdateSelectionHint, Boolean, CompletionItem)

Constructs FilteredCompletionModel with completion filters, indication regarding selection mode and the unique item

FilteredCompletionModel(ImmutableArray<CompletionItemWithHighlight>, Int32, ImmutableArray<CompletionFilterWithState>, UpdateSelectionHint, Boolean, CompletionItem)

Constructs FilteredCompletionModel with completion filters, indication regarding selection mode and the unique item

FilteredCompletionModel(ImmutableArray<CompletionItemWithHighlight>, Int32)

Constructs FilteredCompletionModel without completion filters.

public:
 FilteredCompletionModel(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItemWithHighlight> items, int selectedItemIndex);
public FilteredCompletionModel (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, int selectedItemIndex);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> * int -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel
Public Sub New (items As ImmutableArray(Of CompletionItemWithHighlight), selectedItemIndex As Integer)

Parameters

items
ImmutableArray<CompletionItemWithHighlight>

Items to display in the completion UI.

selectedItemIndex
Int32

Recommended item index to select. -1 selects suggestion item.

Applies to

FilteredCompletionModel(ImmutableArray<CompletionItemWithHighlight>, Int32, ImmutableArray<CompletionFilterWithState>)

Constructs FilteredCompletionModel with completion filters.

public:
 FilteredCompletionModel(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItemWithHighlight> items, int selectedItemIndex, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> filters);
public FilteredCompletionModel (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, int selectedItemIndex, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> filters);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> * int * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel
Public Sub New (items As ImmutableArray(Of CompletionItemWithHighlight), selectedItemIndex As Integer, filters As ImmutableArray(Of CompletionFilterWithState))

Parameters

items
ImmutableArray<CompletionItemWithHighlight>

Items to display in the completion UI.

selectedItemIndex
Int32

Recommended item index to select. -1 selects suggestion item.

filters
ImmutableArray<CompletionFilterWithState>

Completion filters with their availability and selection state. Default is empty array.

Applies to

FilteredCompletionModel(CompletionList<CompletionItemWithHighlight>, Int32, ImmutableArray<CompletionFilterWithState>, UpdateSelectionHint, Boolean, CompletionItem)

Constructs FilteredCompletionModel with completion filters, indication regarding selection mode and the unique item

public FilteredCompletionModel (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, int selectedItemIndex, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> filters, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.UpdateSelectionHint selectionHint, bool centerSelection, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem uniqueItem);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> * int * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.UpdateSelectionHint * bool * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel
Public Sub New (items As CompletionList(Of CompletionItemWithHighlight), selectedItemIndex As Integer, filters As ImmutableArray(Of CompletionFilterWithState), selectionHint As UpdateSelectionHint, centerSelection As Boolean, uniqueItem As CompletionItem)

Parameters

items
CompletionList<CompletionItemWithHighlight>

Items to display in the completion UI.

selectedItemIndex
Int32

Recommended item index to select. -1 selects suggestion item.

filters
ImmutableArray<CompletionFilterWithState>

Completion filters with their availability and selection state. Default is empty array.

selectionHint
UpdateSelectionHint

Allows IAsyncCompletionItemManager to influence the selection mode. Default is NoChange

centerSelection
Boolean

Whether selected item should be centered in the completion list.

uniqueItem
CompletionItem

Provides CompletionItem to commit using "commit if unique" command despite displaying more than one item. Default is null

Applies to

FilteredCompletionModel(ImmutableArray<CompletionItemWithHighlight>, Int32, ImmutableArray<CompletionFilterWithState>, UpdateSelectionHint, Boolean, CompletionItem)

Constructs FilteredCompletionModel with completion filters, indication regarding selection mode and the unique item

public:
 FilteredCompletionModel(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItemWithHighlight> items, int selectedItemIndex, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> filters, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::UpdateSelectionHint selectionHint, bool centerSelection, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^ uniqueItem);
public FilteredCompletionModel (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, int selectedItemIndex, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> filters, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.UpdateSelectionHint selectionHint, bool centerSelection, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem uniqueItem);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> * int * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.UpdateSelectionHint * bool * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.FilteredCompletionModel
Public Sub New (items As ImmutableArray(Of CompletionItemWithHighlight), selectedItemIndex As Integer, filters As ImmutableArray(Of CompletionFilterWithState), selectionHint As UpdateSelectionHint, centerSelection As Boolean, uniqueItem As CompletionItem)

Parameters

items
ImmutableArray<CompletionItemWithHighlight>

Items to display in the completion UI.

selectedItemIndex
Int32

Recommended item index to select. -1 selects suggestion item.

filters
ImmutableArray<CompletionFilterWithState>

Completion filters with their availability and selection state. Default is empty array.

selectionHint
UpdateSelectionHint

Allows IAsyncCompletionItemManager to influence the selection mode. Default is NoChange

centerSelection
Boolean

Whether selected item should be centered in the completion list.

uniqueItem
CompletionItem

Provides CompletionItem to commit using "commit if unique" command despite displaying more than one item. Default is null

Applies to