5 overrides of CurrentText
Microsoft.CodeAnalysis (1)
Text\SourceText.cs (1)
1274public override SourceText CurrentText => _text;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
339public override SourceText CurrentText => sourceText;
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.TextBufferContainer.cs (1)
55public override SourceText CurrentText
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
83public override SourceText CurrentText => Text;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
118public override SourceText CurrentText => text;
18 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 (3)
Interactive\InteractiveWorkspace.cs (1)
46var oldText = _openTextContainer.CurrentText;
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
299if (Buffer.AsTextContainer().CurrentText == text &&
Shared\Preview\PreviewWorkspace.cs (1)
46textContainer.CurrentText,
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
668=> Task.FromResult(TextAndVersion.Create(_textContainer.CurrentText, VersionStamp.Create(), _filePath));
Workspace\Solution\TextLoader.cs (1)
230=> TextAndVersion.Create(_container.CurrentText, _version, _filePath);
Workspace\Workspace_Editor.cs (2)
396var newText = textContainer.CurrentText; 591var newText = data.textContainer.CurrentText;
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
SolutionTests\SolutionWithSourceGeneratorTests.cs (7)
597generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.CurrentText.GetOpenDocumentInCurrentContextWithChanges()); 598Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 621generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.CurrentText.GetOpenDocumentInCurrentContextWithChanges()); 645generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.CurrentText.GetOpenDocumentInCurrentContextWithChanges()); 646Assert.Same(differentOpenTextContainer.CurrentText, await generatedDocument.GetTextAsync()); 672generatedDocument = Assert.IsType<SourceGeneratedDocument>(differentOpenTextContainer.CurrentText.GetOpenDocumentInCurrentContextWithChanges()); 706Assert.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.Xaml (1)
Implementation\XamlProjectService.cs (1)
183_workspace.OnDocumentTextChanged(documentId, textContainer.CurrentText, PreservationMode.PreserveIdentity);