6 instantiations of CaretPreservingEditTransaction
Microsoft.CodeAnalysis.EditorFeatures (6)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
119using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations); 291using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations);
AutomaticCompletion\Extensions.cs (1)
23return new CaretPreservingEditTransaction(description, view, registry, service)
CommentSelection\AbstractCommentSelectionBase.cs (2)
128using (var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService)) 146using var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService);
Shared\Utilities\CaretPreservingEditTransaction.cs (1)
47return new CaretPreservingEditTransaction(description, textView, undoHistoryRegistry, editorOperationsFactoryService);
17 references to CaretPreservingEditTransaction
Microsoft.CodeAnalysis.CSharp.EditorFeatures (5)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
83using var transaction = CaretPreservingEditTransaction.TryCreate(CSharpEditorResources.Complete_statement_on_semicolon, args.TextView, _textUndoHistoryRegistry, _editorOperationsFactoryService);
ConvertNamespace\ConvertNamespaceCommandHandler.cs (1)
80using var transaction = CaretPreservingEditTransaction.TryCreate(
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
171using var transaction = CaretPreservingEditTransaction.TryCreate(
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (1)
65using var transaction = CaretPreservingEditTransaction.TryCreate(
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
91using var transaction = CaretPreservingEditTransaction.TryCreate(
Microsoft.CodeAnalysis.EditorFeatures (12)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (3)
134using var transaction = args.TextView.CreateEditTransaction(EditorFeaturesResources.Automatic_Line_Ender, _undoRegistry, _editorOperationsFactoryService); 145using var transaction = args.TextView.CreateEditTransaction(EditorFeaturesResources.Automatic_Line_Ender, _undoRegistry, _editorOperationsFactoryService); 154using var editTransaction = args.TextView.CreateEditTransaction(EditorFeaturesResources.Automatic_Line_Ender, _undoRegistry, _editorOperationsFactoryService);
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
119using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations); 291using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations);
AutomaticCompletion\Extensions.cs (1)
20public static CaretPreservingEditTransaction CreateEditTransaction(
CommentSelection\AbstractCommentSelectionBase.cs (2)
128using (var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService)) 146using var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService);
Formatting\FormatCommandHandler.cs (1)
203private CaretPreservingEditTransaction CreateEditTransaction(ITextView view, string description)
Shared\Utilities\CaretPreservingEditTransaction.cs (1)
40public static CaretPreservingEditTransaction? TryCreate(string description,
SplitComment\SplitCommentCommandHandler.cs (2)
94using var transaction = CaretPreservingEditTransaction.TryCreate(