15 references to GetSnapshotSpansOnBuffer
Microsoft.CodeAnalysis.EditorFeatures (15)
CommentSelection\AbstractCommentSelectionBase.cs (1)
94
var selectedSpans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (2)
92
var snapshots = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer).OrderByDescending(s => s.Span.Start);
150
.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer)
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
45
var spans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(textBuffer);
ExtractMethod\ExtractMethodCommandHandler.cs (2)
65
var spans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer);
95
var spans = view.Selection.
GetSnapshotSpansOnBuffer
(textBuffer).Where(s => s.Length > 0).ToList();
FindReferences\FindReferencesCommandHandler.cs (1)
71
var snapshotSpans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
Formatting\FormatCommandHandler.FormatSelection.cs (1)
47
var selection = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(buffer);
GoToDefinition\GoToDefinitionCommandHandler.cs (1)
86
args.TextView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer).FirstOrNull()?.Start ??
InlineRename\AbstractInlineRenameUndoManager.cs (1)
104
var selectionSpan = selection.
GetSnapshotSpansOnBuffer
(snapshot.TextBuffer).Single();
InlineRename\CommandHandlers\AbstractRenameCommandHandler.cs (1)
67
var selectedSpans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
111
var selectedSpans = args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer);
InlineRename\CommandHandlers\AbstractRenameCommandHandler_WordDeleteHandler.cs (1)
54
var selectedSpans = view.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);
Interactive\SendToInteractiveSubmissionProvider.cs (1)
39
: args.TextView.Selection.
GetSnapshotSpansOnBuffer
(args.SubjectBuffer).Where(ss => ss.Length > 0);
SplitComment\SplitCommentCommandHandler.cs (1)
54
var spans = textView.Selection.
GetSnapshotSpansOnBuffer
(subjectBuffer);