ChangeCommitGestureFlags ChangeCommitGestureFlags ChangeCommitGestureFlags Enum

Definition

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[System.Flags]
public enum ChangeCommitGestureFlags
type ChangeCommitGestureFlags = 
Public Enum ChangeCommitGestureFlags
Inheritance
ChangeCommitGestureFlagsChangeCommitGestureFlagsChangeCommitGestureFlags
Attributes

Fields

CCG_CARET_ON_NEW_BUFFER_LINE CCG_CARET_ON_NEW_BUFFER_LINE CCG_CARET_ON_NEW_BUFFER_LINE 16

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 CCG_DESTRUCTIVEACTION CCG_DESTRUCTIVEACTION 128

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

CCG_ENTER_COMMAND CCG_ENTER_COMMAND CCG_ENTER_COMMAND 16

Same as CCG_CARET_ON_NEW_BUFFER_LINE.

CCG_FIND_STARTING CCG_FIND_STARTING CCG_FIND_STARTING 32

Fired before a find operation is started.

CCG_LOST_FOCUS CCG_LOST_FOCUS CCG_LOST_FOCUS 64

Indicates that the editor window has lost focus.

CCG_MASS_REPLACE CCG_MASS_REPLACE CCG_MASS_REPLACE 8

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 CCG_MULTILINE_CHANGE CCG_MULTILINE_CHANGE 2

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

CCG_PROGRAMMATIC_CHANGE CCG_PROGRAMMATIC_CHANGE CCG_PROGRAMMATIC_CHANGE 4096

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 CCG_SAVE CCG_SAVE 1

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.

Remarks

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