Share via


ReasonForDismiss Enum

Definition

Why was a suggestion dismissed?

public enum ReasonForDismiss
type ReasonForDismiss = 
Public Enum ReasonForDismiss
Inheritance
ReasonForDismiss

Fields

DismissedAfterBackspace 131078

The user hit backspace invalidating the current proposal and the SuggestionSessionBase as dismissed as a result.

DismissedAfterBufferChange 7

The buffer was modified by something other than a supported command (e.g. a format document instead of a typechar).

DismissedAfterCaretMoved 3

The caret was moved away from the proposed edit.

DismissedAfterCompletionChange 131073

The user made a completion change that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result.

DismissedAfterCompletionItemCommitted 131074

The user committed a completion item that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result.

DismissedAfterCompletionItemCommittedCommandPending 131075

The user committed a completion item using a commit character that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result. This update happens after the item is committed but before the commit character is added to the buffer.

DismissedAfterIntelliSenseDismissed 6

The user explicitly dismissed the IntelliSense session.

DismissedAfterOutliningCollapsed 5

An outlining region that contained one of the edit spans was collapsed.

DismissedAfterReturn 131077

The user hit return that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result.

DismissedAfterTypeChar 131076

The user typed a character that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result.

DismissedAfterUserDelete 1

User dismissed the suggestion by hitting Delete.

DismissedAfterUserEscape 0

User dismissed the suggestion by hitting Escape.

DismissedAfterViewClosed 2

The view containing the suggestion was closed.

DismissedBySession 4

The suggestion was dismissed by a call to DismissAsync(ReasonForDismiss, CancellationToken) and DismissedBySession was given as the reason.

DismissedDueToInvalidProposal 131079

The proposal given to DisplayProposalAsync(ProposalBase, CancellationToken) could not be reconciled with the current state of the buffer and the SuggestionSessionBase as dismissed as a result.

Applies to