ChangeCommitGestureFlags Enumeration

 

Flags indicating the type of changes made to text that triggered the commit gesture.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

[FlagsAttribute]
public enum ChangeCommitGestureFlags

Member nameDescription
CCG_CARET_ON_NEW_BUFFER_LINE

Occurs when the caret has moved to a new buffer line. For example, this occurs on a carriage return or when a user clicks on a different line to move the caret.

CCG_DESTRUCTIVEACTION

Used by the core editor. Editor clients should not use this value.

CCG_ENTER_COMMAND

Same as CCG_CARET_ON_NEW_BUFFER_LINE.

CCG_FIND_STARTING

Fired before a find operation is started.

CCG_LOST_FOCUS

Indicates that the editor window has lost focus.

CCG_MASS_REPLACE

Occurs when the commit is being fired for multiple changes within the affected span. For example, committing a large replace operation or running a wizard that affects multiple places in the file.

CCG_MULTILINE_CHANGE

Occurs when a single change covers multiple lines, for example, a paste operation.

CCG_PROGRAMMATIC_CHANGE

Signals that the commit is being fired while the editor is running an automation function, for example, if a macro is played back.

CCG_SAVE

Occurs when a file is being saved. A language service can perform any final file fix-ups required and the changes will be persisted in the save.

Because these are flags, they can be combined. For example, a client could see CCG_PROGRAMMATIC_CHANGE and CCG_CARET_ON_NEW_BUFFER_LINE.

Return to top
Show: