Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data Namespace

Classes

AggregatedCompletionContext

This type is used to fetch completion data from available IAsyncCompletionSources without sorting, filtering and displaying the results in the GUI.

AsyncCompletionSessionDataSnapshot

Contains data of IAsyncCompletionSession valid at a specific, instantaneous moment pertinent to current computation. This data is passed to IAsyncCompletionItemManager to filter the list and select appropriate item.

AsyncCompletionSessionInitialDataSnapshot

Contains data of IAsyncCompletionSession valid at a specific, instantaneous moment pertinent to current computation. This data is passed to IAsyncCompletionItemManager to initially sort the list prior to filtering and selecting.

CompletionClosedEventArgs

This class is used to notify completion's logic when the UI closes

CompletionContext

This type is used to transfer data from IAsyncCompletionSource to IAsyncCompletionBroker and further to IAsyncCompletionItemManager

CompletionExpander

Identifies an expander that adds CompletionItems that reference it to the list of completions.

CompletionFilter

Identifies a filter that toggles exclusive display of CompletionItems that reference it.

CompletionFilterChangedEventArgs

This class is used to notify completion's logic of selection change in the filter UI

CompletionFilterWithState

Immutable data transfer object that describes state of a CompletionFilter: whether it IsAvailable based on typed text and whether it IsSelected by the user.

CompletionItem

This class, returned from IAsyncCompletionSource, represents a single entry to be displayed in the completion UI. This class implements IPropertyOwner

CompletionItemEventArgs

This class is used to notify of an operation that affects a single CompletionItem.

CompletionItemSelectedEventArgs

This class is used to notify completion's logic of selecting through the UI

CompletionList<T>

Represents a readonly list of CompletionItems or CompletionItemWithHighlights capable of efficient storing of large number of items.

CompletionPresentationViewModel

This class contains completion items, filters and other pieces of information used by ICompletionPresenter to render the completion UI.

CompletionPresenterOptions

Contains additional properties of thie ICompletionPresenter that may be accessed prior to initializing an instance of ICompletionPresenter

CompletionTriggeredEventArgs

This class is used to notify about new IAsyncCompletionSession being triggered

ComputedCompletionItems

Stores information on computed CompletionItems and their selection information.

ComputedCompletionItemsEventArgs

This class is used to notify of an operation that affects multiple CompletionItemWithHighlights.

FilteredCompletionModel

This class, returned from IAsyncCompletionItemManager, contains completion items to display in the UI, recommended item to display, selection mode and available filters.

SuggestionItemOptions

Instructs the editor if and how to display the builder item. In suggestion mode, the UI displays a single CompletionItem, aka "Builder", whose DisplayText and InsertText are equal to text typed by the user so far.

Structs

CommitResult

Tracks whether the commit occured, and provides instructions for behavior after committing.

CompletionItemWithHighlight

Wraps CompletionItem with information about highlighted parts of its DisplayText.

CompletionStartData
CompletionTrigger

What caused the completion to trigger or update. Location is not provided in this struct because Editor maps the location to an appropriate buffer for each IAsyncCompletionSource.

InitialTrigger

What triggered the completion, but not where it happened. The reason we don't expose location is that for each extension, we map the point to a buffer with matching content type.

UpdateTrigger

What triggered updating of completion.

Enums

CommitBehavior

Instructs the editor how to behave after committing a CompletionItem.

CompletionParticipation

Describes the level of IAsyncCompletionSource's participation in the IAsyncCompletionSession.

CompletionTriggerReason

Describes the kind of action that initially triggered completion to open.

GetSelectedItemOptions

Inidicates how much to wait for GetSelectedItemAsync(GetSelectedItemOptions, CancellationToken) The shorter wait comes with a tradeoff of receiving a potentially stale item or no item.

InitialSelectionHint

Used by IAsyncCompletionSource to recommend the selection mode.

InitialTriggerReason

Describes the kind of action that initially triggered completion to open.

UpdateSelectionHint

Used by IAsyncCompletionItemManager to recommend the selection mode.

UpdateTriggerReason

Describes the kind of action that triggered completion to filter.