17 references to Operation
Microsoft.CodeAnalysis.EditorFeatures (17)
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\CommentSelectionResult.cs (2)
13internal readonly struct CommentSelectionResult(IEnumerable<TextChange> textChanges, IEnumerable<CommentTrackingSpan> trackingSpans, Operation resultOperation) 28public 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 (3)
89Operation operation; 98operation = Operation.Comment; 107operation = Operation.Uncomment;