3 overrides of CurrentText
Microsoft.CodeAnalysis (1)
Text\SourceText.cs (1)
1269
public override SourceText
CurrentText
=> _text;
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.TextBufferContainer.cs (1)
55
public override SourceText
CurrentText
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
79
public override SourceText
CurrentText
=> Text;
20 references to CurrentText
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\PreviewTests.cs (1)
120
var text = diffView.Viewer.RightView.TextBuffer.AsTextContainer().
CurrentText
.ToString();
Microsoft.CodeAnalysis.EditorFeatures (4)
Interactive\InteractiveWorkspace.cs (1)
47
var oldText = _openTextContainer.
CurrentText
;
Preview\AbstractPreviewFactoryService.cs (2)
488
leftSolution = leftSolution.WithDocumentText(allLeftIds, oldBuffer.AsTextContainer().
CurrentText
, PreservationMode.PreserveIdentity);
495
rightSolution = rightSolution.WithDocumentText(allRightIds, newBuffer.AsTextContainer().
CurrentText
, PreservationMode.PreserveIdentity);
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
301
if (Buffer.AsTextContainer().
CurrentText
== text &&
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
644
=> Task.FromResult(TextAndVersion.Create(_textContainer.
CurrentText
, VersionStamp.Create(), _filePath));
Workspace\Solution\TextLoader.cs (1)
245
=> TextAndVersion.Create(_container.
CurrentText
, _version, _filePath);
Workspace\Workspace_Editor.cs (2)
395
var newText = textContainer.
CurrentText
;
590
var newText = data.textContainer.
CurrentText
;
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
SolutionTests\SolutionWithSourceGeneratorTests.cs (7)
599
generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.
CurrentText
.GetOpenDocumentInCurrentContextWithChanges());
600
Assert.Same(differentOpenTextContainer.
CurrentText
, await generatedDocument.GetTextAsync());
623
generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.
CurrentText
.GetOpenDocumentInCurrentContextWithChanges());
647
generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.
CurrentText
.GetOpenDocumentInCurrentContextWithChanges());
648
Assert.Same(differentOpenTextContainer.
CurrentText
, await generatedDocument.GetTextAsync());
674
generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.
CurrentText
.GetOpenDocumentInCurrentContextWithChanges());
708
Assert.Null(differentOpenTextContainer.
CurrentText
.GetOpenDocumentInCurrentContextWithChanges());
Microsoft.VisualStudio.LanguageServices (2)
Snippets\AbstractSnippetCommandHandler.cs (1)
262
var currentText = subjectBuffer.AsTextContainer().
CurrentText
;
Venus\ContainedLanguage.IVsContainedLanguageCodeSupport.cs (1)
223
var document = this.ContainedDocument.GetOpenTextContainer().
CurrentText
.GetOpenDocumentInCurrentContextWithChanges();
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCommandHandler.vb (1)
87
Dim text = subjectBuffer.AsTextContainer().
CurrentText
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
178
_workspace.OnDocumentTextChanged(documentId, textContainer.
CurrentText
, PreservationMode.PreserveIdentity);