1 override of Container
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
114
public override SourceTextContainer
Container
28 references to Container
Microsoft.CodeAnalysis.EditorFeatures (5)
Editor\TextEditApplication.cs (1)
34
if (Workspace.TryGetWorkspace(oldText.
Container
, out var workspace))
RenameTracking\RenameTrackingTaggerProvider.cs (3)
77
textBuffer = text.
Container
.TryGetTextBuffer();
83
text.
Container
.GetType().FullName));
114
var textBuffer = text.
Container
.TryGetTextBuffer();
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
86
var textBuffer = text.
Container
.GetTextBuffer();
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
118
return _container ?? base.
Container
;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Preview\PreviewWorkspaceTests.cs (1)
100
var sourceTextContainer = SourceText.From("Text").
Container
;
TextEditor\TryGetDocumentTests.cs (2)
45
Assert.True(container == newSourceText.
Container
);
60
Assert.Same(text.
Container
, container);
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
79
loader: TextLoader.From(assemblyInfoSourceText.
Container
, VersionStamp.Default),
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Workspaces\LspWorkspaceManager.cs (2)
180
workspace.TryOnDocumentOpenedAsync(documentId, documentText.
Container
, isCurrentContext: false, cancellationToken)).ConfigureAwait(false);
459
documentId, sourceText.
Container
, isCurrentContext: false, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\Document.cs (1)
461
var container = text.
Container
;
Workspace\TextExtensions.cs (4)
21
if (Workspace.TryGetWorkspace(text.
Container
, out var workspace))
23
var documentId = workspace.GetDocumentIdInCurrentContext(text.
Container
);
61
if (Workspace.TryGetWorkspace(text.
Container
, out var workspace))
64
var id = workspace.GetDocumentIdInCurrentContext(text.
Container
);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionWithSourceGeneratorTests.cs (5)
595
var differentOpenTextContainer = SourceText.From("// Open Text").
Container
;
619
var differentOpenTextContainer = SourceText.From("// StaticContent", Encoding.UTF8).
Container
;
639
var differentOpenTextContainer = SourceText.From("// Open Text").
Container
;
670
var differentOpenTextContainer = SourceText.From("// Open Text").
Container
;
697
var differentOpenTextContainer = SourceText.From("// Open Text").
Container
;
Microsoft.VisualStudio.LanguageServices (2)
Venus\ContainedLanguageCodeSupport.cs (1)
326
if (CodeAnalysis.Workspace.TryGetWorkspace(document.GetTextSynchronously(cancellationToken).
Container
, out var workspace))
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
74
var container = document.GetTextSynchronously(CancellationToken.None).
Container
;
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
482
var textContainer = sourceText.
Container
;
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ProjectSystemShim\VisualStudioProjectTests\WorkspaceChangedEventTests.vb (1)
130
project.AddSourceTextContainer(SourceText.From("// Test").
Container
, "Z:\Test.cs")
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Venus\ContainedLanguageStaticEventBinding.vb (2)
72
Dim textBuffer = targetDocument.GetTextSynchronously(cancellationToken).
Container
.TryGetTextBuffer()
100
Dim textBuffer = targetDocument.GetTextSynchronously(cancellationToken).
Container
.TryGetTextBuffer()