32 references to Operation
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CommentSelection\CSharpCommentSelectionTests.cs (1)
123commandHandler.ExecuteCommand(textView, textBuffer, Operation.Uncomment, TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures (23)
CommentSelection\AbstractCommentSelectionBase.cs (3)
143if (edits.ResultOperation == Operation.Uncomment && document.SupportsSyntaxTree) 170internal static ITrackingSpan CreateTrackingSpan(Operation operation, ITextSnapshot snapshot, TextSpan textSpan) 173var spanTrackingMode = operation == Operation.Comment
CommentSelection\AbstractToggleBlockCommentBase.cs (5)
30new([], [], Operation.Uncomment); 102var returnOperation = Operation.Uncomment; 112returnOperation = Operation.Comment; 117if (returnOperation == Operation.Comment)
CommentSelection\CommentSelectionResult.cs (2)
11internal readonly struct CommentSelectionResult(IEnumerable<TextChange> textChanges, IEnumerable<CommentTrackingSpan> trackingSpans, Operation resultOperation) 26public Operation ResultOperation { get; } = resultOperation;
CommentSelection\CommentUncommentSelectionCommandHandler.cs (9)
35AbstractCommentSelectionBase<Operation>(undoHistoryRegistry, editorOperationsFactoryService, editorOptionsService), 46=> this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Comment, context); 55=> this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment, context); 59protected override string GetTitle(Operation operation) 60=> operation == Operation.Comment 64protected override string GetMessage(Operation operation) 65=> operation == Operation.Comment 76Operation operation, CancellationToken cancellationToken) 82if (operation == Operation.Comment)
CommentSelection\ToggleLineCommentCommandHandler.cs (4)
44new([], [], Operation.Uncomment); 90Operation operation; 99operation = Operation.Comment; 108operation = Operation.Uncomment;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (8)
668=> CommentOrUncommentSelection(code, expectedChanges, new[] { expectedSelectedSpan }, supportBlockComments, Operation.Uncomment); 671=> CommentOrUncommentSelection(code, expectedChanges, expectedSelectedSpans, supportBlockComments, Operation.Uncomment); 674=> CommentOrUncommentSelection(code, expectedChanges, null /*expectedSelectedSpans*/, supportBlockComments, Operation.Comment); 677=> CommentOrUncommentSelection(code, expectedChanges, expectedSelectedSpans, supportBlockComments, Operation.Comment); 680=> CommentOrUncommentSelection(exportProvider, textView, expectedChanges, expectedSelectedSpans, supportBlockComments, Operation.Comment); 690Operation operation) 706Operation operation) 720.Select(textSpan => AbstractCommentSelectionBase<Operation>.CreateTrackingSpan(