다음을 통해 공유


CompletionPresentationViewModel Constructors

Definition

Overloads

CompletionPresentationViewModel(CompletionList<CompletionItemWithHighlight>, ImmutableArray<CompletionFilterWithState>, Int32, ITrackingSpan, Boolean, Boolean, Boolean, CompletionItem, SuggestionItemOptions)

Constructs CompletionPresentationViewModel

CompletionPresentationViewModel(ImmutableArray<CompletionItemWithHighlight>, ImmutableArray<CompletionFilterWithState>, Int32, ITrackingSpan, Boolean, Boolean, Boolean, CompletionItem, SuggestionItemOptions)

Constructs CompletionPresentationViewModel

CompletionPresentationViewModel(CompletionList<CompletionItemWithHighlight>, ImmutableArray<CompletionFilterWithState>, Int32, ITrackingSpan, Boolean, Boolean, Boolean, CompletionItem, SuggestionItemOptions)

public CompletionPresentationViewModel (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> filters, int selectedItemIndex, Microsoft.VisualStudio.Text.ITrackingSpan applicableToSpan, bool useSoftSelection, bool displaySuggestionItem, bool selectSuggestionItem, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem? suggestionItem, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.SuggestionItemOptions? suggestionItemOptions);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionPresentationViewModel : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * int * Microsoft.VisualStudio.Text.ITrackingSpan * bool * bool * bool * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.SuggestionItemOptions -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionPresentationViewModel
Public Sub New (items As CompletionList(Of CompletionItemWithHighlight), filters As ImmutableArray(Of CompletionFilterWithState), selectedItemIndex As Integer, applicableToSpan As ITrackingSpan, useSoftSelection As Boolean, displaySuggestionItem As Boolean, selectSuggestionItem As Boolean, suggestionItem As CompletionItem, suggestionItemOptions As SuggestionItemOptions)

Parameters

items
CompletionList<CompletionItemWithHighlight>

Completion items to display with their highlighted spans

filters
ImmutableArray<CompletionFilterWithState>

Completion filters with their available and selected state

selectedItemIndex
Int32

Controls which item is selected. Use -1 in suggestion mode

applicableToSpan
ITrackingSpan

Span pertinent to the completion session

useSoftSelection
Boolean

Controls whether selected item should be soft selected. Default is false

displaySuggestionItem
Boolean

Controls whether suggestion mode item is visible. Default is false

selectSuggestionItem
Boolean

Controls whether suggestion mode item is selected. Default is false

suggestionItem
CompletionItem

Suggestion mode item to display. Default is null

suggestionItemOptions
SuggestionItemOptions

How to present the suggestion mode item. This is required because completion may be in suggestion mode even if there is no explicit suggestion mode item

Applies to

CompletionPresentationViewModel(ImmutableArray<CompletionItemWithHighlight>, ImmutableArray<CompletionFilterWithState>, Int32, ITrackingSpan, Boolean, Boolean, Boolean, CompletionItem, SuggestionItemOptions)

public:
 CompletionPresentationViewModel(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItemWithHighlight> items, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> filters, int selectedItemIndex, Microsoft::VisualStudio::Text::ITrackingSpan ^ applicableToSpan, bool useSoftSelection, bool displaySuggestionItem, bool selectSuggestionItem, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^ suggestionItem, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::SuggestionItemOptions ^ suggestionItemOptions);
public CompletionPresentationViewModel (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> filters, int selectedItemIndex, Microsoft.VisualStudio.Text.ITrackingSpan applicableToSpan, bool useSoftSelection, bool displaySuggestionItem, bool selectSuggestionItem, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem suggestionItem, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.SuggestionItemOptions suggestionItemOptions);
public CompletionPresentationViewModel (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> items, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> filters, int selectedItemIndex, Microsoft.VisualStudio.Text.ITrackingSpan applicableToSpan, bool useSoftSelection, bool displaySuggestionItem, bool selectSuggestionItem, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem? suggestionItem, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.SuggestionItemOptions? suggestionItemOptions);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionPresentationViewModel : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight> * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * int * Microsoft.VisualStudio.Text.ITrackingSpan * bool * bool * bool * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.SuggestionItemOptions -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionPresentationViewModel
Public Sub New (items As ImmutableArray(Of CompletionItemWithHighlight), filters As ImmutableArray(Of CompletionFilterWithState), selectedItemIndex As Integer, applicableToSpan As ITrackingSpan, useSoftSelection As Boolean, displaySuggestionItem As Boolean, selectSuggestionItem As Boolean, suggestionItem As CompletionItem, suggestionItemOptions As SuggestionItemOptions)

Parameters

items
ImmutableArray<CompletionItemWithHighlight>

Completion items to display with their highlighted spans

filters
ImmutableArray<CompletionFilterWithState>

Completion filters with their available and selected state

selectedItemIndex
Int32

Controls which item is selected. Use -1 in suggestion mode

applicableToSpan
ITrackingSpan

Span pertinent to the completion session

useSoftSelection
Boolean

Controls whether selected item should be soft selected. Default is false

displaySuggestionItem
Boolean

Controls whether suggestion mode item is visible. Default is false

selectSuggestionItem
Boolean

Controls whether suggestion mode item is selected. Default is false

suggestionItem
CompletionItem

Suggestion mode item to display. Default is null

suggestionItemOptions
SuggestionItemOptions

How to present the suggestion mode item. This is required because completion may be in suggestion mode even if there is no explicit suggestion mode item

Applies to