IAsyncCompletionSession.CreateCompletionList<T> Method
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.
Creates session-scoped readonly list of CompletionItems or CompletionItemWithHighlights capable of efficient storing of large number of items.
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<T> CreateCompletionList<T> (System.Collections.Generic.IEnumerable<T> completionItems);
abstract member CreateCompletionList : seq<'T> -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<'T>
Public Function CreateCompletionList(Of T) (completionItems As IEnumerable(Of T)) As CompletionList(Of T)
Type Parameters
- T
Parameters
- completionItems
- IEnumerable<T>
List of completion items.
Returns
Ssession-scoped readonly list of completion items.
Remarks
CompletionList<T> instances are only valid during the lifetime of a pertinent IAsyncCompletionSession and should not be referenced beyond that.