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