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