Share via


CompletionTrigger Struct

Definition

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.

public value class CompletionTrigger : IEquatable<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger>
[System.Diagnostics.DebuggerDisplay("{Reason} {Character}")]
public struct CompletionTrigger : IEquatable<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger>
[<System.Diagnostics.DebuggerDisplay("{Reason} {Character}")>]
type CompletionTrigger = struct
Public Structure CompletionTrigger
Implements IEquatable(Of CompletionTrigger)
Inheritance
CompletionTrigger
Attributes
Implements

Constructors

CompletionTrigger(CompletionTriggerReason, ITextSnapshot)

Creates a CompletionTrigger not associated with a text edit

CompletionTrigger(CompletionTriggerReason, ITextSnapshot, Char)

Creates a CompletionTrigger associated with a text edit

Properties

Character

The text edit associated with the action.

Reason

The reason that completion action was taken.

ViewSnapshotBeforeTrigger

ITextSnapshot on the view's text buffer before the completion action was taken. For Backspace, Deletion and Insertion, this is text snapshot before the edit has been made. You may use it to get higher fidelity data on text edits that led to this action. If there was no edit, or edit is unavailable, this is the ITextSnapshot at the time action happened. Take precaution when accessing this property: since this is a struct, it may be left uninitialized.

Methods

Equals(Object)
GetHashCode()

Operators

Equality(CompletionTrigger, CompletionTrigger)
Inequality(CompletionTrigger, CompletionTrigger)

Explicit Interface Implementations

IEquatable<CompletionTrigger>.Equals(CompletionTrigger)

Applies to