32 references to Operation
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CommentSelection\CSharpCommentSelectionTests.cs (1)
123
commandHandler.ExecuteCommand(textView, textBuffer,
Operation
.Uncomment, TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures (23)
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\AbstractToggleBlockCommentBase.cs (5)
30
new([], [],
Operation
.Uncomment);
102
var
returnOperation =
Operation
.Uncomment;
112
returnOperation =
Operation
.Comment;
117
if (returnOperation ==
Operation
.Comment)
CommentSelection\CommentSelectionResult.cs (2)
11
internal readonly struct CommentSelectionResult(IEnumerable<TextChange> textChanges, IEnumerable<CommentTrackingSpan> trackingSpans,
Operation
resultOperation)
26
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 (4)
44
new([], [],
Operation
.Uncomment);
90
Operation
operation;
99
operation =
Operation
.Comment;
108
operation =
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);
690
Operation
operation)
706
Operation
operation)
720
.Select(textSpan => AbstractCommentSelectionBase<
Operation
>.CreateTrackingSpan(