AsyncCompletionSessionDataSnapshot Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AsyncCompletionSessionDataSnapshot(ImmutableArray<CompletionItem>, ITextSnapshot, CompletionTrigger, ImmutableArray<CompletionFilterWithState>, Boolean, Boolean)
Constructs AsyncCompletionSessionDataSnapshot
public:
AsyncCompletionSessionDataSnapshot(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^> initialSortedList, Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger trigger, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> selectedFilters, bool isSoftSelected, bool displaySuggestionItem);
public AsyncCompletionSessionDataSnapshot (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> initialSortedList, Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger trigger, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> selectedFilters, bool isSoftSelected, bool displaySuggestionItem);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * bool * bool -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot
Public Sub New (initialSortedList As ImmutableArray(Of CompletionItem), snapshot As ITextSnapshot, trigger As CompletionTrigger, selectedFilters As ImmutableArray(Of CompletionFilterWithState), isSoftSelected As Boolean, displaySuggestionItem As Boolean)
Parameters
- initialSortedList
- ImmutableArray<CompletionItem>
Set of CompletionItems to filter and sort, originally returned from SortCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)
- snapshot
- ITextSnapshot
The ITextSnapshot applicable for this computation. The snapshot comes from the view's data buffer
- trigger
- CompletionTrigger
The CompletionTrigger that caused this update
- selectedFilters
- ImmutableArray<CompletionFilterWithState>
Filters, their availability and selection state
- isSoftSelected
- Boolean
Indicates whether the session is using soft selection
- displaySuggestionItem
- Boolean
Indicates whether the session has a suggestion item
Applies to
AsyncCompletionSessionDataSnapshot(ImmutableArray<CompletionItem>, ITextSnapshot, CompletionTrigger, CompletionTrigger, ImmutableArray<CompletionFilterWithState>, Boolean, Boolean)
Constructs AsyncCompletionSessionDataSnapshot
public:
AsyncCompletionSessionDataSnapshot(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^> initialSortedList, Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger trigger, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger initialTrigger, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> selectedFilters, bool isSoftSelected, bool displaySuggestionItem);
public AsyncCompletionSessionDataSnapshot (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> initialSortedList, Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger trigger, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger initialTrigger, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> selectedFilters, bool isSoftSelected, bool displaySuggestionItem);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * bool * bool -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot
Public Sub New (initialSortedList As ImmutableArray(Of CompletionItem), snapshot As ITextSnapshot, trigger As CompletionTrigger, initialTrigger As CompletionTrigger, selectedFilters As ImmutableArray(Of CompletionFilterWithState), isSoftSelected As Boolean, displaySuggestionItem As Boolean)
Parameters
- initialSortedList
- ImmutableArray<CompletionItem>
Set of CompletionItems to filter and sort, originally returned from SortCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)
- snapshot
- ITextSnapshot
The ITextSnapshot applicable for this computation. The snapshot comes from the view's data buffer
- trigger
- CompletionTrigger
The CompletionTrigger that caused this update
- initialTrigger
- CompletionTrigger
The CompletionTrigger that triggered this completion session
- selectedFilters
- ImmutableArray<CompletionFilterWithState>
Filters, their availability and selection state
- isSoftSelected
- Boolean
Indicates whether the session is using soft selection
- displaySuggestionItem
- Boolean
Indicates whether the session has a suggestion item
Applies to
AsyncCompletionSessionDataSnapshot(ImmutableArray<CompletionItem>, ITextSnapshot, InitialTrigger, UpdateTrigger, ImmutableArray<CompletionFilterWithState>, Boolean, Boolean)
Constructs AsyncCompletionSessionDataSnapshot
public:
AsyncCompletionSessionDataSnapshot(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^> initialSortedList, Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::InitialTrigger initialTrigger, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::UpdateTrigger updateTrigger, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> selectedFilters, bool isSoftSelected, bool displaySuggestionItem);
public AsyncCompletionSessionDataSnapshot (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> initialSortedList, Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.InitialTrigger initialTrigger, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.UpdateTrigger updateTrigger, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> selectedFilters, bool isSoftSelected, bool displaySuggestionItem);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.InitialTrigger * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.UpdateTrigger * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * bool * bool -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot
Public Sub New (initialSortedList As ImmutableArray(Of CompletionItem), snapshot As ITextSnapshot, initialTrigger As InitialTrigger, updateTrigger As UpdateTrigger, selectedFilters As ImmutableArray(Of CompletionFilterWithState), isSoftSelected As Boolean, displaySuggestionItem As Boolean)
Parameters
- initialSortedList
- ImmutableArray<CompletionItem>
Set of CompletionItems to filter and sort, originally returned from SortCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)
- snapshot
- ITextSnapshot
The ITextSnapshot applicable for this computation. The snapshot comes from the view's data buffer
- initialTrigger
- InitialTrigger
The InitialTrigger that started this completion session
- updateTrigger
- UpdateTrigger
The UpdateTrigger for this update
- selectedFilters
- ImmutableArray<CompletionFilterWithState>
Filters, their availability and selection state
- isSoftSelected
- Boolean
Inidicates whether the session is using soft selection
- displaySuggestionItem
- Boolean
Inidicates whether the session has a suggestion item
Applies to
AsyncCompletionSessionDataSnapshot(CompletionList<CompletionItem>, ITextSnapshot, CompletionTrigger, CompletionTrigger, ImmutableArray<CompletionFilterWithState>, Boolean, Boolean, ImmutableArray<String>)
Constructs AsyncCompletionSessionDataSnapshot
public AsyncCompletionSessionDataSnapshot (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> initialSortedList, Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger trigger, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger initialTrigger, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> selectedFilters, bool isSoftSelected, bool displaySuggestionItem, System.Collections.Immutable.ImmutableArray<string> defaults);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * bool * bool * System.Collections.Immutable.ImmutableArray<string> -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot
Public Sub New (initialSortedList As CompletionList(Of CompletionItem), snapshot As ITextSnapshot, trigger As CompletionTrigger, initialTrigger As CompletionTrigger, selectedFilters As ImmutableArray(Of CompletionFilterWithState), isSoftSelected As Boolean, displaySuggestionItem As Boolean, defaults As ImmutableArray(Of String))
Parameters
- initialSortedList
- CompletionList<CompletionItem>
Set of CompletionItems to filter and sort, originally returned from SortCompletionItemListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)
- snapshot
- ITextSnapshot
The ITextSnapshot applicable for this computation. The snapshot comes from the view's data buffer
- trigger
- CompletionTrigger
The CompletionTrigger that caused this update
- initialTrigger
- CompletionTrigger
The CompletionTrigger that triggered the completion session
- selectedFilters
- ImmutableArray<CompletionFilterWithState>
Filters, their availability and selection state
- isSoftSelected
- Boolean
Indicates whether the session is using soft selection
- displaySuggestionItem
- Boolean
Indicates whether the session has a suggestion item
- defaults
- ImmutableArray<String>
Suggested default items for the session
Remarks
Note: when using this contructor make sure to implement IAsyncCompletionItemManager2 to avoid potential performance impact.
Applies to
AsyncCompletionSessionDataSnapshot(ImmutableArray<CompletionItem>, ITextSnapshot, CompletionTrigger, CompletionTrigger, ImmutableArray<CompletionFilterWithState>, Boolean, Boolean, ImmutableArray<String>)
Constructs AsyncCompletionSessionDataSnapshot
public:
AsyncCompletionSessionDataSnapshot(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^> initialSortedList, Microsoft::VisualStudio::Text::ITextSnapshot ^ snapshot, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger trigger, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger initialTrigger, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilterWithState ^> selectedFilters, bool isSoftSelected, bool displaySuggestionItem, System::Collections::Immutable::ImmutableArray<System::String ^> defaults);
public AsyncCompletionSessionDataSnapshot (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> initialSortedList, Microsoft.VisualStudio.Text.ITextSnapshot snapshot, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger trigger, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger initialTrigger, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> selectedFilters, bool isSoftSelected, bool displaySuggestionItem, System.Collections.Immutable.ImmutableArray<string> defaults);
new Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem> * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilterWithState> * bool * bool * System.Collections.Immutable.ImmutableArray<string> -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionDataSnapshot
Public Sub New (initialSortedList As ImmutableArray(Of CompletionItem), snapshot As ITextSnapshot, trigger As CompletionTrigger, initialTrigger As CompletionTrigger, selectedFilters As ImmutableArray(Of CompletionFilterWithState), isSoftSelected As Boolean, displaySuggestionItem As Boolean, defaults As ImmutableArray(Of String))
Parameters
- initialSortedList
- ImmutableArray<CompletionItem>
Set of CompletionItems to filter and sort, originally returned from SortCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)
- snapshot
- ITextSnapshot
The ITextSnapshot applicable for this computation. The snapshot comes from the view's data buffer
- trigger
- CompletionTrigger
The CompletionTrigger that caused this update
- initialTrigger
- CompletionTrigger
The CompletionTrigger that triggered the completion session
- selectedFilters
- ImmutableArray<CompletionFilterWithState>
Filters, their availability and selection state
- isSoftSelected
- Boolean
Indicates whether the session is using soft selection
- displaySuggestionItem
- Boolean
Indicates whether the session has a suggestion item
- defaults
- ImmutableArray<String>
Suggested default items for the session