ChangeCommitGestureFlags 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.
Flags indicating the type of changes made to text that triggered the commit gesture.
This enumeration supports a bitwise combination of its member values.
public enum class ChangeCommitGestureFlags
public enum class ChangeCommitGestureFlags
enum ChangeCommitGestureFlags
[System.Flags]
public enum ChangeCommitGestureFlags
[<System.Flags>]
type ChangeCommitGestureFlags =
Public Enum ChangeCommitGestureFlags
- Inheritance
-
ChangeCommitGestureFlags
- Attributes
Fields
Name | Value | Description |
---|---|---|
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. |
CCG_MULTILINE_CHANGE | 2 | Occurs when a single change covers multiple lines, for example, a paste operation. |
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_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_ENTER_COMMAND | 16 | Same as CCG_CARET_ON_NEW_BUFFER_LINE. |
CCG_FIND_STARTING | 32 | Fired before a find operation is started. |
CCG_LOST_FOCUS | 64 | Indicates that the editor window has lost focus. |
CCG_DESTRUCTIVEACTION | 128 | Used by the core editor. Editor clients should not use this value. |
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. |
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
.