11 instantiations of CaretPreservingEditTransaction
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
174using var transaction = new CaretPreservingEditTransaction(
Microsoft.CodeAnalysis.EditorFeatures (7)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
121using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations); 293using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations);
AutomaticCompletion\Extensions.cs (1)
23return new CaretPreservingEditTransaction(description, view, registry, service)
CommentSelection\AbstractCommentSelectionBase.cs (2)
131using (var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService)) 149using var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService);
Formatting\FormatCommandHandler.cs (1)
212=> new(description, view, _undoHistoryRegistry, _editorOperationsFactoryService);
Shared\Utilities\CaretPreservingEditTransaction.cs (1)
47return new CaretPreservingEditTransaction(description, textView, undoHistoryRegistry, editorOperationsFactoryService);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (3)
EndConstructGeneration\EndConstructCommandHandler.vb (1)
147Using transaction = New CaretPreservingEditTransaction(VBEditorResources.End_Construct, view, _undoHistoryRegistry, _editorOperationsFactoryService)
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
171Using transaction = New CaretPreservingEditTransaction(VBEditorResources.End_Construct, textView, _undoHistoryRegistry, _editorOperationsFactoryService)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
40Using transaction = New CaretPreservingEditTransaction(VBEditorResources.Generate_Member, textView, _textUndoHistoryRegistry, _editorOperationsFactoryService)
25 references to CaretPreservingEditTransaction
Microsoft.CodeAnalysis.CSharp.EditorFeatures (11)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
71using var transaction = CaretPreservingEditTransaction.TryCreate(CSharpEditorResources.Complete_statement_on_semicolon, args.TextView, _textUndoHistoryRegistry, _editorOperationsFactoryService);
ConvertNamespace\ConvertNamespaceCommandHandler.cs (2)
89using var transaction = CaretPreservingEditTransaction.TryCreate(
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (2)
107using var transaction = CaretPreservingEditTransaction.TryCreate(
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (2)
65using var transaction = CaretPreservingEditTransaction.TryCreate(
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (2)
98using var transaction = CaretPreservingEditTransaction.TryCreate(
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
174using var transaction = new CaretPreservingEditTransaction(
Microsoft.CodeAnalysis.EditorFeatures (14)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (3)
133using var transaction = args.TextView.CreateEditTransaction(EditorFeaturesResources.Automatic_Line_Ender, _undoRegistry, _editorOperationsFactoryService); 144using var transaction = args.TextView.CreateEditTransaction(EditorFeaturesResources.Automatic_Line_Ender, _undoRegistry, _editorOperationsFactoryService); 153using var editTransaction = args.TextView.CreateEditTransaction(EditorFeaturesResources.Automatic_Line_Ender, _undoRegistry, _editorOperationsFactoryService);
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
121using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations); 293using var caretPreservingTransaction = new CaretPreservingEditTransaction(EditorFeaturesResources.Brace_Completion, _undoHistory, _editorOperations);
AutomaticCompletion\Extensions.cs (1)
20public static CaretPreservingEditTransaction CreateEditTransaction(
CommentSelection\AbstractCommentSelectionBase.cs (2)
131using (var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService)) 149using var transaction = new CaretPreservingEditTransaction(title, textView, _undoHistoryRegistry, _editorOperationsFactoryService);
Formatting\FormatCommandHandler.cs (3)
69using (var transaction = CreateEditTransaction(textView, EditorFeaturesResources.Formatting)) 184using (var transaction = CreateEditTransaction(textView, EditorFeaturesResources.Automatic_Formatting)) 211private CaretPreservingEditTransaction CreateEditTransaction(ITextView view, string description)
Shared\Utilities\CaretPreservingEditTransaction.cs (1)
40public static CaretPreservingEditTransaction? TryCreate(string description,
SplitComment\SplitCommentCommandHandler.cs (2)
106using var transaction = CaretPreservingEditTransaction.TryCreate(