17 references to Operation
Microsoft.CodeAnalysis.EditorFeatures (17)
CommentSelection\AbstractCommentSelectionBase.cs (3)
143
if (edits.ResultOperation ==
Operation
.Uncomment && document.SupportsSyntaxTree)
170
internal static ITrackingSpan CreateTrackingSpan(
Operation
operation, ITextSnapshot snapshot, TextSpan textSpan)
173
var spanTrackingMode = operation ==
Operation
.Comment
CommentSelection\CommentSelectionResult.cs (2)
13
internal readonly struct CommentSelectionResult(IEnumerable<TextChange> textChanges, IEnumerable<CommentTrackingSpan> trackingSpans,
Operation
resultOperation)
28
public
Operation
ResultOperation { get; } = resultOperation;
CommentSelection\CommentUncommentSelectionCommandHandler.cs (9)
35
AbstractCommentSelectionBase<
Operation
>(undoHistoryRegistry, editorOperationsFactoryService, editorOptionsService),
46
=> this.ExecuteCommand(args.TextView, args.SubjectBuffer,
Operation
.Comment, context);
55
=> this.ExecuteCommand(args.TextView, args.SubjectBuffer,
Operation
.Uncomment, context);
59
protected override string GetTitle(
Operation
operation)
60
=> operation ==
Operation
.Comment
64
protected override string GetMessage(
Operation
operation)
65
=> operation ==
Operation
.Comment
76
Operation
operation, CancellationToken cancellationToken)
82
if (operation ==
Operation
.Comment)
CommentSelection\ToggleLineCommentCommandHandler.cs (3)
89
Operation
operation;
98
operation =
Operation
.Comment;
107
operation =
Operation
.Uncomment;