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