39 references to ToTextSpan
Microsoft.CodeAnalysis.EditorFeatures (39)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
153var textSpan = snapshotSpan.Span.ToTextSpan();
BracePairs\BracePairsTaggerProvider.cs (1)
58document, spanToTag.SnapshotSpan.Span.ToTextSpan(), bracePairs, cancellationToken).ConfigureAwait(false);
Classification\CopyPasteAndPrintingClassificationBufferTaggerProvider.Tagger.cs (1)
198await addAsync(span.Span.ToTextSpan(), tempBuffer).ConfigureAwait(false);
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (2)
241document, span.ToTextSpan(), options, classifiedSpans, cancellationToken).ConfigureAwait(false); 246document, span.ToTextSpan(), options, classifiedSpans, cancellationToken).ConfigureAwait(false);
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (3)
471span.Snapshot.AsText(), span.Span.ToTextSpan(), classifiedSpans, CancellationToken.None); 505classificationService.AddSyntacticClassifications(solutionServices, root, span.Span.ToTextSpan(), tempList, cancellationToken); 507classificationService.AddSyntacticClassificationsAsync(lastProcessedDocument, span.Span.ToTextSpan(), tempList, cancellationToken).Wait(cancellationToken);
Classification\TotalClassificationTaggerProvider.cs (1)
271=> value.Span.Span.ToTextSpan();
CommentSelection\ToggleLineCommentCommandHandler.cs (2)
132var commentTrackingSpan = new CommentTrackingSpan(selectedSpan.Span.ToTextSpan()); 152var commentTrackingSpan = new CommentTrackingSpan(selectedSpan.Span.ToTextSpan());
Copilot\CopilotTaggerProvider.cs (1)
84await analysisService.AnalyzeDocumentAsync(document, spanToTag.SnapshotSpan.Span.ToTextSpan(), prompts[0], cancellationToken).ConfigureAwait(false);
Copilot\CopilotWpfTextCreationListener.cs (1)
121textChanges.Add(new TextChange(edit.Span.Span.ToTextSpan(), edit.ReplacementText));
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
79document, span.Span.ToTextSpan(), useDefaultBehavior: true, cancellationToken).ConfigureAwait(false);
Extensibility\NavigationBar\NavigationBarItem.cs (1)
66.ToTextSpan();
ExtractMethod\ExtractMethodCommandHandler.cs (1)
125await ExecuteWorkerAsync(view, textBuffer, span.Span.ToTextSpan(), indicatorContext).ConfigureAwait(false);
Formatting\FormatCommandHandler.FormatSelection.cs (1)
53var formattingSpan = selection[0].Span.ToTextSpan();
Formatting\FormatCommandHandler.Paste.cs (1)
76var span = trackingSpan.GetSpan(subjectBuffer.CurrentSnapshot).Span.ToTextSpan();
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.SingleDiagnosticKindPullTaggerProvider.cs (2)
129requestedSpan.Span.ToTextSpan(), 141var copilotDiagnostics = await document.GetCachedCopilotDiagnosticsAsync(requestedSpan.Span.ToTextSpan(), cancellationToken).ConfigureAwait(false);
InlineHints\InlineHintsDataTaggerProvider.cs (1)
90document, snapshotSpan.Span.ToTextSpan(), options,
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
120var sessionInfo = await renameService.StartInlineSessionAsync(document, selectedSpans.Single().Span.ToTextSpan(), cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameSession.cs (1)
258_openTextBuffers[triggerSpan.Snapshot.TextBuffer].SetReferenceSpans([startingSpan.ToTextSpan()]);
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
628replacement.Kind, replacement.OriginalSpan, trackingSpan.GetSpan(buffer.CurrentSnapshot).Span.ToTextSpan()));
InlineRename\TrackingSpanIntrospector.cs (1)
15=> value.GetSpan(snapshot).Span.ToTextSpan();
IntelliSense\AsyncCompletion\CommitManager.cs (1)
322var changes = formattingService.GetFormattingChangesAsync(currentDocument, subjectBuffer, spanToFormat.Span.ToTextSpan(), cancellationToken).WaitAndGetResult(cancellationToken);
IntelliSense\ViewTextSpan.cs (2)
59return new ViewTextSpan(span.ToTextSpan()); 67return new ViewTextSpan(span.ToTextSpan());
LineSeparators\LineSeparatorTaggerProvider.cs (1)
93var lineSeparatorSpans = await lineSeparatorService.GetLineSeparatorsAsync(document, snapshotSpan.Span.ToTextSpan(), cancellationToken).ConfigureAwait(false);
Preview\PreviewStaticClassificationTaggerProvider.cs (1)
77var requestSpan = span.Span.ToTextSpan();
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
313snapshotSpan.Span.ToTextSpan());
Shared\Extensions\TextChangeExtensions.cs (1)
13=> new(textChange.OldSpan.ToTextSpan(), textChange.NewLength);
Shared\Tagging\Utilities\TagSpanIntervalTree.IntervalIntrospector.cs (1)
21=> GetTranslatedSpan(value, snapshot, trackingMode).Span.ToTextSpan();
SpellCheck\RoslynSpellCheckFixerProvider.cs (1)
96var subSpanBeingRenamed = span.Span.ToTextSpan();
StringIndentation\StringIndentationTaggerProvider.cs (1)
86var regions = await service.GetStringIndentationRegionsAsync(document, snapshotSpan.Span.ToTextSpan(), cancellationToken).ConfigureAwait(false);
Suggestions\SuggestedActionsSource.cs (1)
246document, range.Span.ToTextSpan(), priorityProvider, cancellationToken).ConfigureAwait(false);
Suggestions\SuggestedActionsSource_Async.cs (1)
241workspace, owner._codeFixService, document, range.Span.ToTextSpan(),
TextDiffing\EditorTextDifferencingService.cs (2)
44diffResult.LeftDecomposition.GetSpanInOriginal(d.Left).ToTextSpan(), 45newText.GetSubText(diffResult.RightDecomposition.GetSpanInOriginal(d.Right).ToTextSpan()).ToString()))];