ReasonForDismiss Enum
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.
Why was a suggestion dismissed?
public enum ReasonForDismiss
type ReasonForDismiss =
Public Enum ReasonForDismiss
- Inheritance
-
ReasonForDismiss
Fields
Name | Value | Description |
---|---|---|
DismissedAfterUserEscape | 0 | User dismissed the suggestion by hitting Escape. |
DismissedAfterUserDelete | 1 | User dismissed the suggestion by hitting Delete. |
DismissedAfterViewClosed | 2 | The view containing the suggestion was closed. |
DismissedAfterCaretMoved | 3 | The caret was moved away from the proposed edit. |
DismissedBySession | 4 | The suggestion was dismissed by a call to DismissAsync(ReasonForDismiss, CancellationToken) and DismissedBySession was given as the reason. |
DismissedAfterOutliningCollapsed | 5 | An outlining region that contained one of the edit spans was collapsed. |
DismissedAfterIntelliSenseDismissed | 6 | The user explicitly dismissed the IntelliSense session. |
DismissedAfterBufferChange | 7 | The buffer was modified by something other than a supported command (e.g. a format document instead of a typechar). |
DismissedForRefinement | 8 | A refinement session -- Copilot Chat -- has take the proposal over (causing the gray text to be dismissed). |
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. |
DismissedAfterTypeChar | 131076 | The user typed a character that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result. |
DismissedAfterReturn | 131077 | The user hit return that diverged from the current proposal and the SuggestionSessionBase as dismissed as a result. |
DismissedAfterBackspace | 131078 | The user hit backspace invalidating the current proposal and the SuggestionSessionBase as dismissed as a result. |
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. |
DismissedAfterCaretMove | 131082 | The proposal was dismissed because the user moved the caret. |